diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2022-08-16 00:15:57 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2022-08-16 02:08:39 -0600 |
commit | 8c0513a04ff3870f57bde230507aaa8c6b7e6e86 (patch) | |
tree | 4e9c8082bb9168c923eee2c6bd17f01e44206f0a /parse.go | |
parent | 83ec1924ae051b60f911aa8b53b741c5371faaf8 (diff) |
Get borrowed_decode_test.go passing
Diffstat (limited to 'parse.go')
-rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -658,7 +658,7 @@ func (par *Parser) HandleRune(c rune) (RuneType, error) { func (par *Parser) expectRune(c, exp rune, typ RuneType, context string, pop bool) (RuneType, error) { if c != exp { - return RuneTypeError, fmt.Errorf("%s: unexpected character: %q", context, c) + return RuneTypeError, fmt.Errorf("invalid character %q in literal %s (expecting %q)", c, context, exp) } if pop { par.popState() |