Skip to content

Commit

Permalink
Fix log path for invalid uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajnasz committed Oct 1, 2020
1 parent 6eb84a7 commit d898f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d898f9f

Please sign in to comment.