diff options
Diffstat (limited to 'bare-arm/main.c')
-rw-r--r-- | bare-arm/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bare-arm/main.c b/bare-arm/main.c index 3c187e5fb0..d9f83b4ebe 100644 --- a/bare-arm/main.c +++ b/bare-arm/main.c @@ -14,6 +14,7 @@ #include "runtime0.h" #include "runtime.h" #include "repl.h" +#include "pfenv.h" void do_str(const char *src) { mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); @@ -38,7 +39,7 @@ void do_str(const char *src) { if (mp_obj_is_exception_instance(module_fun)) { // compile error - mp_obj_print_exception(module_fun); + mp_obj_print_exception(printf_wrapper, NULL, module_fun); return; } @@ -48,7 +49,7 @@ void do_str(const char *src) { nlr_pop(); } else { // uncaught exception - mp_obj_print_exception((mp_obj_t)nlr.ret_val); + mp_obj_print_exception(printf_wrapper, NULL, (mp_obj_t)nlr.ret_val); } } |