From 2082417a48d56295796e2bbfc2001ecf5008a88a Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 May 2011 13:36:46 +0000 Subject: * eval.c (setup_exception): internal exception should be hidden git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 2d07719e87..d5f2c4cc1d 100644 --- a/eval.c +++ b/eval.c @@ -371,8 +371,10 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg) const char *file; volatile int line = 0; - if (NIL_P(mesg)) + if (NIL_P(mesg)) { mesg = th->errinfo; + if (INTERNAL_EXCEPTION_P(mesg)) JUMP_TAG(TAG_FATAL); + } if (NIL_P(mesg)) { mesg = rb_exc_new(rb_eRuntimeError, 0, 0); } -- cgit v1.2.3