Skip to content

Commit 6bd1670

Browse files
authored
Merge pull request buger#92 from Raynos/patch-2
Fix typo in error message
2 parents 5b691c8 + 99fdbe6 commit 6bd1670

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)