summaryrefslogtreecommitdiff
path: root/eval_error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-25 17:45:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-25 17:45:10 +0000
commitf96f013955b2e804be3bf63011cbbb3f132b5349 (patch)
tree8dc0ee9fa212ddde639de91d823f8d1878a8de4b /eval_error.c
parent4198f1473ab7e34780db04155d01f6cc573f07c6 (diff)
eval_error.c: newline always
* eval_error.c (error_print): put a newline after an anonymous exception class name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index c6a1252ef9..401eba8c54 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -170,8 +170,8 @@ error_print(void)
}
if (tail) {
warn_print2(tail, elen - len - 1);
- if (einfo[elen-1] != '\n') warn_print2("\n", 1);
}
+ if (tail ? einfo[elen-1] != '\n' : !epath) warn_print2("\n", 1);
}
}