Skip to content

Commit

Permalink
Added missing quotes in Exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Genarito committed Nov 19, 2021
1 parent 2231d76 commit fa025e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gura/Parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit fa025e6

Please sign in to comment.