]> Cypherpunks repositories - gostls13.git/commit
cmd/go: show full path name (testdata/script/foo.txt) in script errors
authorRuss Cox <rsc@golang.org>
Thu, 25 May 2023 01:00:22 +0000 (21:00 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 25 May 2023 21:49:42 +0000 (21:49 +0000)
commitcfe8b43b1fd453d06fc32a04746dcc8be6e955fd
tree7d7994f467bf740b07faca79f68ba0e47e258c54
parentee6b9dd47f6091b475dd85b3c989b2b940f24a15
cmd/go: show full path name (testdata/script/foo.txt) in script errors

Showing the full path (relative to the current directory)
instead of just foo.txt lets editors that understand file:line
jump straight to the file without having to edit it to say
testdata/script/ first.

Change-Id: I44177b687249f3c7c724b45d02f5167607369e1b
Reviewed-on: https://go-review.googlesource.com/c/go/+/498119
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/script_test.go