Skip to content

Commit

Permalink
Shorten error message
Browse files Browse the repository at this point in the history
  • Loading branch information
job committed Jul 27, 2021
1 parent a171598 commit f82e338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prefixfile/prefixfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (vrp *VRPJson) GetASN() uint32 {
func (vrp *VRPJson) GetPrefix2() (*net.IPNet, error) {
_, prefix, err := net.ParseCIDR(vrp.Prefix)
if err != nil {
return nil, errors.New(fmt.Sprintf("Could not decode prefix: %v as part of VRP", vrp.Prefix))
return nil, errors.New(fmt.Sprintf("Could not decode prefix: %v", vrp.Prefix))
}
return prefix, nil
}
Expand Down

0 comments on commit f82e338

Please sign in to comment.