From a91ac2011f0131ce550bf227d78ccccbdab4f882 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 5 Oct 2014 19:01:34 +0100 Subject: py: Make compiler return a proper exception on SyntaxError. --- unix-cpy/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix-cpy') diff --git a/unix-cpy/main.c b/unix-cpy/main.c index ac142f50f..6695c7e84 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); } } } -- cgit v1.2.3