diff options
Diffstat (limited to 'eval_error.c')
-rw-r--r-- | eval_error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c index b0ee0f45c9..44d82e8a7f 100644 --- a/eval_error.c +++ b/eval_error.c @@ -169,9 +169,10 @@ print_errinfo(const VALUE eclass, const VALUE errat, const VALUE emesg, const VA write_warn(str, "\n"); } else { + /* emesg is a String instance */ const char *tail = 0; - if (emesg == Qundef && highlight) write_warn(str, bold); + if (highlight) write_warn(str, bold); if (RSTRING_PTR(epath)[0] == '#') epath = 0; if ((tail = memchr(einfo, '\n', elen)) != 0) { |