diff options
| author | mryouse | 2022-06-28 23:44:22 +0000 |
|---|---|---|
| committer | mryouse | 2022-06-28 23:44:22 +0000 |
| commit | 76800f84af4833755c0f8b53d7768b02c7560cd4 (patch) | |
| tree | 0b48cdc47d0af857c6e9975394ecc308e9337400 /neb/exceptions.py | |
| parent | 3e2d950f7632d015e36007baeb7e39e16246436b (diff) | |
bugfix: fail gracefully when parens are uneven
Diffstat (limited to 'neb/exceptions.py')
| -rw-r--r-- | neb/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/neb/exceptions.py b/neb/exceptions.py index 8bbe000..cc0f915 100644 --- a/neb/exceptions.py +++ b/neb/exceptions.py @@ -11,3 +11,7 @@ class InterpretPanic(NebPanic): class LexError(NebPanic): def __init__(self, message, line): super().__init__(f"line {line}: {message}") + +class ParseError(NebPanic): + def __init__(self, message, line): + super().__init__(f"line {line}: {message}") |
