diff --git a/gura/Parser.py b/gura/Parser.py index 14929df..73d7d83 100644 --- a/gura/Parser.py +++ b/gura/Parser.py @@ -36,7 +36,7 @@ def assert_end(self): raise ParseError( self.pos + 1, self.line, - 'Expected end of string but got %s', + 'Expected end of string but got "%s"', self.text[self.pos + 1] ) @@ -101,7 +101,7 @@ def char(self, chars: Optional[str] = None) -> str: raise ParseError( self.pos + 1, self.line, - 'Expected [%s] but got %s' % (chars, next_char) + 'Expected [%s] but got "%s"' % (chars, next_char) ) def keyword(self, *keywords: str):