fix error message to print the unexpected rune

pull/1821/head
Simon Paredes 2023-11-27 18:54:28 -03:00 committed by Jack Christensen
parent 89d699c2e8
commit 4678e69599
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ func parseUntypedTextArray(src string) (*untypedTextArray, error) {
}
if r != '{' {
return nil, fmt.Errorf("invalid array, expected '{': %v", err)
return nil, fmt.Errorf("invalid array, expected '{' got %v", r)
}
implicitDimensions := []ArrayDimension{{LowerBound: 1, Length: 0}}

View File

@ -343,7 +343,7 @@ func parseUntypedTextMultirange(src []byte) ([]string, error) {
}
if r != '{' {
return nil, fmt.Errorf("invalid multirange, expected '{': %v", err)
return nil, fmt.Errorf("invalid multirange, expected '{' got %v", r)
}
parseValueLoop: