Skip to content

Commit

Permalink
PR #143: Improve error message on missing trailing slash
Browse files Browse the repository at this point in the history
The error text when you don't have a trailing slash isn't clear. This is to make it super-obvious!
  • Loading branch information
juliangamble authored and magiconair committed Aug 16, 2016
1 parent 1b74b47 commit 5983723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/consul/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func parseURLPrefixTag(s, prefix string, env map[string]string) (host, path stri
// split host/path
p := strings.SplitN(s[len(prefix):], "/", 2)
if len(p) != 2 {
log.Printf("[WARN] consul: Invalid %s tag %q", prefix, s)
log.Printf("[WARN] consul: Invalid %s tag %q - You need to have a trailing slash!", prefix, s)
return "", "", false
}

Expand Down

0 comments on commit 5983723

Please sign in to comment.