Commit f380904b authored by Dave Hylands's avatar Dave Hylands Committed by Damien George
Browse files

stmhal: Print exception information in nlr_jump_failed

Currently nlr_jump_fail prints that there was an uncaught exception
but nothing about the exception.
This patch causes nlr_jump_failed to try to print the exception.
Given that printf was called on the line above, I think that
the call to mp_obj_print_exception has about as much likelyhood
of succeeding as the printf does.
parent 36c6d2fa
......@@ -103,6 +103,7 @@ void NORETURN __fatal_error(const char *msg) {
void nlr_jump_fail(void *val) {
printf("FATAL: uncaught exception %p\n", val);
mp_obj_print_exception(&mp_plat_print, (mp_obj_t)val);
__fatal_error("");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment