From fa025e66df0cb9297fa9892508bb8387ba72177d Mon Sep 17 00:00:00 2001 From: Genarito Date: Thu, 18 Nov 2021 21:03:23 -0300 Subject: [PATCH] Added missing quotes in Exception messages --- gura/Parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):