🐐 INVOCA error message

This commit is contained in:
2026-04-22 14:09:01 +02:00
parent 5e2ebcdc9d
commit 461bfbbdc5
3 changed files with 11 additions and 1 deletions

2
cent
View File

@@ -42,6 +42,8 @@ def main():
pos = e.source_pos
char = program_text[pos.idx] if pos.idx < len(program_text) else "?"
sys.exit(f"CENTVRION error: Invalid character {char!r} at line {pos.lineno}, column {pos.colno}")
except SyntaxError as e:
sys.exit(f"CENTVRION error: {e}")
if isinstance(program, Program):
if args["-i"]: