From d898f9f3663d405ba07cb07e9fa3239dfad4f58c Mon Sep 17 00:00:00 2001 From: Lajos Koszti Date: Thu, 1 Oct 2020 13:36:48 +0200 Subject: [PATCH] Fix log path for invalid uuid --- uuid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uuid.go b/uuid.go index 0a0148a..333232b 100644 --- a/uuid.go +++ b/uuid.go @@ -29,7 +29,7 @@ func getUUIDUrlWithSecret(u *url.URL, UUID string, key string) (*url.URL, error) func getUUIDAndSecretFromPath(urlPath string) (string, string, error) { pathDir, key := path.Split(urlPath) if len(pathDir) < 1 { - return "", "", fmt.Errorf("Invalid URL") + return "", "", fmt.Errorf("Invalid URL %q", urlPath) } _, uuidFromPath := path.Split(pathDir[0 : len(pathDir)-1]) UUID, err := uuid.Parse(uuidFromPath)