Skip to content

Commit

Permalink
- Unified error handling for UOS scripts, now all error carry the AST…
Browse files Browse the repository at this point in the history
…Node that generated it ( line, line, number, etc )
  • Loading branch information
cesare-montresor committed Feb 16, 2024
1 parent 82d0bd2 commit 8f42121
Show file tree
Hide file tree
Showing 2 changed files with 410 additions and 387 deletions.
3 changes: 2 additions & 1 deletion Razor/RazorEnhanced/EnhancedScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,8 @@ public bool HandleException(Exception ex)
else if (
exceptionType == typeof(UOSScriptError) ||
exceptionType == typeof(UOSSyntaxError) ||
exceptionType == typeof(UOSRuntimeError) )
exceptionType == typeof(UOSRuntimeError) ||
exceptionType == typeof(UOSArgumentError))
{
UOSScriptError uos_se = ex as UOSScriptError;
message += "\n"+uos_se.Message;
Expand Down
Loading

0 comments on commit 8f42121

Please sign in to comment.