summaryrefslogtreecommitdiffstatshomepage
path: root/stm/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/main.c')
-rw-r--r--stm/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stm/main.c b/stm/main.c
index c49fa42ff9..4e1222e8fc 100644
--- a/stm/main.c
+++ b/stm/main.c
@@ -445,8 +445,7 @@ void do_repl(void) {
}
} else {
// uncaught exception
- mp_obj_print((mp_obj_t)nlr.ret_val, PRINT_REPR);
- printf("\n");
+ mp_obj_print_exception((mp_obj_t)nlr.ret_val);
}
}
}
@@ -490,8 +489,7 @@ bool do_file(const char *filename) {
return true;
} else {
// uncaught exception
- mp_obj_print((mp_obj_t)nlr.ret_val, PRINT_REPR);
- printf("\n");
+ mp_obj_print_exception((mp_obj_t)nlr.ret_val);
return false;
}
}