summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--stmhal/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 733d3a19b4..cce114605a 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -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("");
}