summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index fdc338b504..8d48a2bf19 100644
--- a/eval.c
+++ b/eval.c
@@ -685,7 +685,10 @@ ruby_options(argc, argv)
eval_tree = save;
}
POP_TAG();
- if (state) error_print();
+ if (state) {
+ error_print();
+ exit(1);
+ }
}
static VALUE