avoid import error not propagated to the toplevel
This commit is contained in:
parent
0c8d5aa33c
commit
78b3cb8c6e
7
lib.c
7
lib.c
|
@ -133,12 +133,7 @@ import(pic_state *pic, pic_value spec)
|
|||
struct pic_dict *imports;
|
||||
xh_iter it;
|
||||
|
||||
pic_try {
|
||||
imports = import_table(pic, spec);
|
||||
}
|
||||
pic_catch {
|
||||
pic_errorf(pic, "syntax error around import statement: ~s", spec);
|
||||
}
|
||||
imports = import_table(pic, spec);
|
||||
|
||||
xh_begin(&it, &imports->hash);
|
||||
while (xh_next(&it)) {
|
||||
|
|
Loading…
Reference in New Issue