diff options
Diffstat (limited to 'qemu-arm/test_main.c')
-rw-r--r-- | qemu-arm/test_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index fb95130772..ea9b0408f3 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -40,7 +40,7 @@ inline void do_str(const char *src) { mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, true); if (mp_obj_is_exception_instance(module_fun)) { - mp_obj_print_exception(module_fun); + mp_obj_print_exception(printf_wrapper, NULL, module_fun); tt_abort_msg("Compile error"); } @@ -49,7 +49,7 @@ inline void do_str(const char *src) { mp_call_function_0(module_fun); nlr_pop(); } else { - mp_obj_print_exception((mp_obj_t)nlr.ret_val); + mp_obj_print_exception(printf_wrapper, NULL, (mp_obj_t)nlr.ret_val); tt_abort_msg("Uncaught exception"); } end: |