mirror of https://github.com/jackc/pgx.git
fix error message to print the unexpected rune
parent
89d699c2e8
commit
4678e69599
|
@ -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}}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue