From 8c0513a04ff3870f57bde230507aaa8c6b7e6e86 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 16 Aug 2022 00:15:57 -0600 Subject: Get borrowed_decode_test.go passing --- parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.go') diff --git a/parse.go b/parse.go index fb72280..77d1b08 100644 --- a/parse.go +++ b/parse.go @@ -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() -- cgit v1.2.3-54-g00ecf