summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index d3472da40..462950bc9 100644
--- a/eval.c
+++ b/eval.c
@@ -4310,7 +4310,7 @@ rb_longjmp(tag, mesg)
PUSH_TAG(PROT_NONE);
if ((status = EXEC_TAG()) == 0) {
- StringValue(e);
+ e = rb_obj_as_string(e);
warn_printf("Exception `%s' at %s:%d - %s\n",
rb_obj_classname(ruby_errinfo),
ruby_sourcefile, ruby_sourceline,