summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2017-11-02 15:44:05 +0900
committerTomoyuki Sahara <[email protected]>2017-11-02 15:44:05 +0900
commitf6896751b454451fe05636d9d8b4f80eb191fd9c (patch)
tree96b1da4b8aebacfbb08383e79c73c655c5221f1c /src/error.c
parentddfb24908c701b742edbad171da395e16c8cda1a (diff)
downloadmruby-f6896751b454451fe05636d9d8b4f80eb191fd9c.tar.gz
mruby-f6896751b454451fe05636d9d8b4f80eb191fd9c.zip
don't overwrite backtrace info.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index fd4182eb2..a9b6db07a 100644
--- a/src/error.c
+++ b/src/error.c
@@ -200,6 +200,7 @@ exc_debug_info(mrb_state *mrb, struct RObject *exc)
mrb_callinfo *ci = mrb->c->ci;
mrb_code *pc = ci->pc;
+ if (mrb_obj_iv_defined(mrb, exc, mrb_intern_lit(mrb, "file"))) return;
while (ci >= mrb->c->cibase) {
mrb_code *err = ci->err;