Skip to content

Commit

Permalink
Merge pull request #25 from square/alok/nit
Browse files Browse the repository at this point in the history
use fmt.Errorf
  • Loading branch information
alokmenghrajani committed Apr 1, 2016
2 parents 3116178 + 8795e35 commit 9671766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkix/csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func ParseAndValidateIPs(ipList string) (res []net.IP, err error) {
for _, ip := range ips {
parsedIP := net.ParseIP(ip)
if parsedIP == nil {
return nil, errors.New(fmt.Sprintf("Invalid IP address: %s", ip))
return nil, fmt.Errorf("Invalid IP address: %s", ip)
}
res = append(res, parsedIP)
}
Expand Down

0 comments on commit 9671766

Please sign in to comment.