summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
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()