Skip to content

Commit 99fdbe6

Browse files
authored
Fix typo in error message
This error message typo was really confusing.
1 parent 5b691c8 commit 99fdbe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ func GetString(data []byte, keys ...string) (val string, err error) {
751751
}
752752

753753
if t != String {
754-
return "", fmt.Errorf("Value is not a number: %s", string(v))
754+
return "", fmt.Errorf("Value is not a string: %s", string(v))
755755
}
756756

757757
// If no escapes return raw conten

0 commit comments

Comments
 (0)