fix a few go-vet errors

This commit is contained in:
Tim Hockin
2016-02-09 13:20:31 -08:00
parent ee54afc9ed
commit 7cab7bd472
10 changed files with 20 additions and 21 deletions

View File

@@ -102,7 +102,7 @@ func ParsePortRange(value string) (*PortRange, error) {
func ParsePortRangeOrDie(value string) *PortRange {
pr, err := ParsePortRange(value)
if err != nil {
panic(fmt.Sprintf("couldn't parse port range: %v"))
panic(fmt.Sprintf("couldn't parse port range %q: %v", value, err))
}
return pr
}