summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index e066961..7fd50d9 100644
--- a/main.c
+++ b/main.c
@@ -435,7 +435,7 @@ parse_library_load(char *opt, uc_vm_t *vm)
ucv_put(lib);
if (!ctx)
- return false;
+ return vm->exception.type == EXCEPTION_NONE;
ucv_object_add(uc_vm_scope_get(vm), name ? name : p, ctx);
@@ -557,7 +557,11 @@ main(int argc, char **argv)
break;
case 'l':
- parse_library_load(optarg, &vm);
+ if (!parse_library_load(optarg, &vm)) {
+ rv = 1;
+ goto out;
+ }
+
break;
case 'c':