diff options
| author | Tomoyuki Sahara <[email protected]> | 2017-11-02 15:44:05 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2017-11-02 15:44:05 +0900 |
| commit | f6896751b454451fe05636d9d8b4f80eb191fd9c (patch) | |
| tree | 96b1da4b8aebacfbb08383e79c73c655c5221f1c /src/error.c | |
| parent | ddfb24908c701b742edbad171da395e16c8cda1a (diff) | |
| download | mruby-f6896751b454451fe05636d9d8b4f80eb191fd9c.tar.gz mruby-f6896751b454451fe05636d9d8b4f80eb191fd9c.zip | |
don't overwrite backtrace info.
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 1 |
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; |
