summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-05 19:01:34 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-05 19:01:34 +0100
commita91ac2011f0131ce550bf227d78ccccbdab4f882 (patch)
tree4efcd77de48edbf4017307babe46e9e6b1337c17 /unix-cpy/main.c
parent6dba992182af9b3a73711958de2eeeb33b7f69f6 (diff)
downloadmicropython-a91ac2011f0131ce550bf227d78ccccbdab4f882.tar.gz
micropython-a91ac2011f0131ce550bf227d78ccccbdab4f882.zip
py: Make compiler return a proper exception on SyntaxError.
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);
}
}
}