aboutsummaryrefslogtreecommitdiff
path: root/exceptions.py
diff options
context:
space:
mode:
authormryouse2022-06-18 01:47:06 +0000
committermryouse2022-06-18 01:49:05 +0000
commit8286580ef27d1434c3c2c52e71f19b4a42ec19cf (patch)
tree182f97f4932969c3c99727f74465632c47b5d07c /exceptions.py
parente2b105629164a6df98c8b1ca63c5304ef697b2d1 (diff)
make LexError a NebPanic, and fix lexing errors with :bools
Diffstat (limited to 'exceptions.py')
-rw-r--r--exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/exceptions.py b/exceptions.py
index 229ec88..8bbe000 100644
--- a/exceptions.py
+++ b/exceptions.py
@@ -8,3 +8,6 @@ class InterpretPanic(NebPanic):
big_message += f" (got {arg})"
super().__init__(big_message)
+class LexError(NebPanic):
+ def __init__(self, message, line):
+ super().__init__(f"line {line}: {message}")