Commit 20e9ed39 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

builtinimport: If there was error compiling imported module, raise exception.

parent fa6f0506
......@@ -122,7 +122,7 @@ void do_load(mp_obj_t module_obj, vstr_t *file) {
// TODO handle compile error correctly
nlr_raise(mp_obj_new_exception_msg(&mp_type_SyntaxError, "Syntax error in imported module"));
// complied successfully, execute it
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment