summaryrefslogtreecommitdiffstatshomepage
path: root/stm/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-19 12:38:49 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-19 12:38:49 +0000
commit136b149e417314e5ad46b3ee78b811df57e74f41 (patch)
tree203a941101aae04a8e20028c5301286da5ba87b4 /stm/main.c
parent49f6a99c65943c6b040e7237f7b86cbe184826c0 (diff)
downloadmicropython-136b149e417314e5ad46b3ee78b811df57e74f41.tar.gz
micropython-136b149e417314e5ad46b3ee78b811df57e74f41.zip
py: Add full traceback to exception printing.
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;
}
}