diff --git a/compiler/errors.py b/compiler/errors.py index a98a2da..f9b9d84 100644 --- a/compiler/errors.py +++ b/compiler/errors.py @@ -7,7 +7,7 @@ from . import source, lexer class CompilationError(Exception): def __init__(self, location: source.SourceLocation, message: str = "Unknown error"): - super().__init__(f"{message} at {str(location)}") + super().__init__(f"{str(location)}: {message} ") self.location = location