Added error handling

This commit is contained in:
2022-10-21 19:24:47 -07:00
parent ef19fc42a6
commit 7a1077e371
2 changed files with 18 additions and 2 deletions

View File

@@ -81,6 +81,12 @@ while True:
("#FFFFFF", "\n")
]))
continue
except tokens.ReductionError as e:
printf(FormattedText([
("#FF0000", f"{e.msg}"),
("#FFFFFF", "\n")
]))
continue
# If this line defined a macro, print nothing.
if isinstance(x, runner.MacroStatus):