Skip to content

Commit

Permalink
[die]: Set exception severity and type in die()
Browse files Browse the repository at this point in the history
  • Loading branch information
tene committed Apr 8, 2009
1 parent a2728b4 commit 241ae0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/builtins/control.pir
Expand Up @@ -200,6 +200,8 @@ the moment -- we'll do more complex handling a bit later.)
have_message:
ex = new 'Exception'
ex = message
ex['severity'] = .EXCEPT_FATAL
ex['type'] = .CONTROL_ERROR
set_global '$!', ex
throw ex
.return ()
Expand Down

0 comments on commit 241ae0d

Please sign in to comment.