Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler/ksp_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def __init__(self, line, message):
Exception.__init__(self, msg)
self.line = line
self.message = msg
# Save the original error message (without any context info)
self.error_message = message

class Line:
'''Line object used for handling lines before AST lex/yacc parsing'''
Expand Down Expand Up @@ -2730,4 +2732,4 @@ def __repr__(self):
utils.log_message("The output file for the compiled code was not defined, however compilation ended successfully in %s!" % delta)

if __name__ == "__main__":
main()
main()