Commit e8bec15a authored by Igor Dejanovic's avatar Igor Dejanovic

Fix in the nm_raise

parent 3e78d4b9
...@@ -71,7 +71,8 @@ class NoMatch(Exception): ...@@ -71,7 +71,8 @@ class NoMatch(Exception):
self.exp_str = self.rule._exp_str self.exp_str = self.rule._exp_str
elif self.rule.root: elif self.rule.root:
self.exp_str = rule.rule_name self.exp_str = rule.rule_name
elif isinstance(self.rule, Match): elif isinstance(self.rule, Match) and \
not isinstance(self.rule, EndOfFile):
self.exp_str = rule.to_match self.exp_str = rule.to_match
else: else:
self.exp_str = self.rule.name self.exp_str = self.rule.name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment