aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/example_unix_test.go
diff options
context:
space:
mode:
authorMohit Agarwal <mohit@sdf.org>2015-11-16 23:16:00 +0530
committerAlex Brainman <alex.brainman@gmail.com>2015-11-17 23:46:38 +0000
commite0e4ccb51afd84c33a9da47f72d464a9b92ecf4a (patch)
tree18aab47aa4d33c57e6dfb5d24e2db09d00b638ae /src/path/filepath/example_unix_test.go
parent888aadfa6088cc1654bb4f0c6bb61675ce360dfb (diff)
downloadgo-e0e4ccb51afd84c33a9da47f72d464a9b92ecf4a.tar.xz
path/filepath: include the original paths in error messages
On Windows, Rel emits error messages of the form `Rel: can't make \windows relative to \windows`. Rather than emitting paths after stripping volume names, emit the original paths so as to make those of the form `Rel: can't make d:\windows relative to c:\windows`. Fixed a test that expected the error message to emit clean path instead of the original. Fixes #13259 Change-Id: I3a9bd5b137205f22794ec8046b4e917ee48cf750 Reviewed-on: https://go-review.googlesource.com/16858 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'src/path/filepath/example_unix_test.go')
-rw-r--r--src/path/filepath/example_unix_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path/filepath/example_unix_test.go b/src/path/filepath/example_unix_test.go
index 27d85d15c6..893be1b198 100644
--- a/src/path/filepath/example_unix_test.go
+++ b/src/path/filepath/example_unix_test.go
@@ -35,7 +35,7 @@ func ExampleRel() {
// On Unix:
// "/a/b/c": "b/c" <nil>
// "/b/c": "../b/c" <nil>
- // "./b/c": "" Rel: can't make b/c relative to /a
+ // "./b/c": "" Rel: can't make ./b/c relative to /a
}
func ExampleSplit() {