Skip to content

Commit

Permalink
better error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
x0r committed Sep 25, 2024
1 parent 336b7bb commit bb7947d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions masm2c/pgparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def ptrdir(self, meta: lark.tree.Meta, children: list[str | list[lark.lexer.Toke
try:
assert isinstance(children[0], (str, lark.lexer.Token))
type = children[0].lower() # TODO handle jmp short near abc
except AttributeError:
logging.exception("AttributeError %s:%s", get_line_number(meta), get_raw_line(self.input_str, meta))
except Exception:
logging.exception("Error %s:%s", get_line_number(meta), get_raw_line(self.input_str, meta))
sys.exit(11)
#if self._size: # TODO why need another variable?
self.expression.ptr_size = self.context.typetosize(type)
Expand Down

0 comments on commit bb7947d

Please sign in to comment.