Some vet fixes

This commit is contained in:
Jeff Mitchell
2018-02-04 20:37:57 -05:00
parent 9584ff537f
commit 63efb0e111
8 changed files with 28 additions and 33 deletions

View File

@@ -36,7 +36,7 @@ func (p *ProxyProtoConfig) SetAuthorizedAddrs(addrs interface{}) error {
for _, v := range addrs.([]interface{}) {
stringAddr, ok := v.(string)
if !ok {
return fmt.Errorf("error parsing %q as string")
return fmt.Errorf("error parsing %v as string", v)
}
stringAddrs = append(stringAddrs, stringAddr)
}