summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-14 04:34:43 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-14 04:34:43 +0000
commitce175376b2a0460d746270831d35240595cac276 (patch)
tree4db0e4a9b7f8a22513a4fd558425cb0fbaf5eb57 /eval.c
parent1ad26ccf354816b68273e0d9c82594fbcf009f29 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 3003139dae..8a2072322b 100644
--- a/eval.c
+++ b/eval.c
@@ -2219,13 +2219,13 @@ rb_eval(self, n)
result = rb_eval(self, resq->nd_body);
}
POP_TAG();
- if (state == 0) {
- ruby_errinfo = e_info;
- }
- else if (state == TAG_RETRY) {
+ if (state == TAG_RETRY) {
state = 0;
goto retry_entry;
}
+ if (state != TAG_RAISE) {
+ ruby_errinfo = e_info;
+ }
break;
}
resq = resq->nd_head; /* next rescue */