From 149740340b5f650cf618fb4e02716f04efac92bb Mon Sep 17 00:00:00 2001 From: Ian Cottrell Date: Tue, 11 Jun 2019 20:14:39 -0400 Subject: [PATCH] internal/span: improve invalid uri message Change-Id: Iaf4de4f3a3494868db130fe5fb6885fd28f2a4ea Reviewed-on: https://go-review.googlesource.com/c/tools/+/181684 Run-TryBot: Ian Cottrell Reviewed-by: Rebecca Stambler --- internal/span/uri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/span/uri.go b/internal/span/uri.go index a273c01e..9dfbdaad 100644 --- a/internal/span/uri.go +++ b/internal/span/uri.go @@ -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:]