wip: decoder errors

This commit is contained in:
Thomas Pelletier
2021-03-30 19:52:02 -04:00
parent bcd5333b03
commit 18d45c446b
4 changed files with 43 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func parseInteger(b []byte) (int64, error) {
case 'o':
return parseIntOct(b)
default:
return 0, fmt.Errorf("invalid base: '%c'", b[1])
return 0, newDecodeError(b[1:2], "invalid base: '%c'", b[1])
}
}
return parseIntDec(b)