runtime/exception_raise: never return

This commit is contained in:
Sebastien Bourdeauducq 2014-10-15 16:11:28 +08:00
parent cbf915c2cc
commit 0c9632d71b
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@ void exception_raise(int id)
if(ec_top > 0) { if(ec_top > 0) {
stored_id = id; stored_id = id;
exception_longjmp(exception_contexts[--ec_top].jb); exception_longjmp(exception_contexts[--ec_top].jb);
} else } else {
corecom_log("WARNING: uncaught exception, ID=%d\n", id); corecom_log("ERROR: uncaught exception, ID=%d\n", id);
while(1);
}
} }