Skip to content

Commit

Permalink
Add quotes around string in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
IfCoffeeThenCode committed Apr 9, 2020
1 parent 39ff226 commit e643457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func %[1]sString(s string) (%[1]s, error) {
if val, ok := _%[1]sNameToValueMap[s]; ok {
return val, nil
}
return 0, fmt.Errorf("%%s does not belong to %[1]s values", s)
return 0, fmt.Errorf("'%%s' does not belong to %[1]s values", s)
}
`

Expand Down

0 comments on commit e643457

Please sign in to comment.