internal/span: improve invalid uri message
Change-Id: Iaf4de4f3a3494868db130fe5fb6885fd28f2a4ea Reviewed-on: https://go-review.googlesource.com/c/tools/+/181684 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This commit is contained in:
parent
027b3b4d7b
commit
149740340b
|
@ -39,7 +39,7 @@ func filename(uri URI) (string, error) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if u.Scheme != fileScheme {
|
if u.Scheme != fileScheme {
|
||||||
return "", fmt.Errorf("only file URIs are supported, got %v", u.Scheme)
|
return "", fmt.Errorf("only file URIs are supported, got %q from %q", u.Scheme, uri)
|
||||||
}
|
}
|
||||||
if isWindowsDriveURI(u.Path) {
|
if isWindowsDriveURI(u.Path) {
|
||||||
u.Path = u.Path[1:]
|
u.Path = u.Path[1:]
|
||||||
|
|
Loading…
Reference in New Issue