You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseException("redefinition of operator properties")
To narrow the exception types, we might create a new module called excs, and make some new exception types in this module, for raising during compilation. The existing exception types might be migrated to excs module.
To pretty print the exceptions, we might create a method in excs to well render the exception to string message.
The text was updated successfully, but these errors were encountered:
Currently, the exceptions are not well-rendered, and I just collect the error here,
urgent-lang/urgent/compiler.py
Lines 81 to 85 in 1fc741a
and do some basic formatting at
urgent-lang/urgent/repl1s.py
Lines 62 to 64 in 1fc741a
Also, many exceptions raised when compiling are just this simple, without a proper exception type specified:
urgent-lang/urgent/compiler.py
Line 309 in 1fc741a
To narrow the exception types, we might create a new module called
excs
, and make some new exception types in this module, for raising during compilation. The existing exception types might be migrated toexcs
module.To pretty print the exceptions, we might create a method in
excs
to well render the exception to string message.The text was updated successfully, but these errors were encountered: