1
0
mirror of https://github.com/golang/go synced 2024-09-30 14:28:33 -06:00

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:
Ian Cottrell 2019-06-11 20:14:39 -04:00
parent 027b3b4d7b
commit 149740340b

View File

@ -39,7 +39,7 @@ func filename(uri URI) (string, error) {
return "", err
}
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) {
u.Path = u.Path[1:]