summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix-cpy/main.c')
-rw-r--r--unix-cpy/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix-cpy/main.c b/unix-cpy/main.c
index ac142f50ff..6695c7e84f 100644
--- a/unix-cpy/main.c
+++ b/unix-cpy/main.c
@@ -79,8 +79,8 @@ void do_file(const char *file) {
//printf("----------------\n");
- if (module_fun == mp_const_none) {
- printf("compile error\n");
+ if (mp_obj_is_exception_instance(module_fun)) {
+ mp_obj_print_exception(module_fun);
}
}
}