summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 2210a705af..9bf5c27fbd 100644
--- a/error.c
+++ b/error.c
@@ -1546,7 +1546,7 @@ err_append(const char *s)
rb_thread_t *th = GET_THREAD();
VALUE err = th->errinfo;
- if (th->parse_in_eval) {
+ if (th->mild_compile_error) {
if (!RTEST(err)) {
err = rb_exc_new2(rb_eSyntaxError, s);
th->errinfo = err;