summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-14 14:51:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-14 14:51:08 +0000
commit58adb098ef6db0867f9ae66dd314b3e112e2a41a (patch)
tree148c98118f0d57484635d783a0cbd9528d86ca4b
parent74fe9071144766a97486df49fae5c22e07e64d90 (diff)
downloadruby-58adb098ef6db0867f9ae66dd314b3e112e2a41a.tar.gz
ruby-58adb098ef6db0867f9ae66dd314b3e112e2a41a.tar.xz
ruby-58adb098ef6db0867f9ae66dd314b3e112e2a41a.zip
* eval_error.c (error_print): append a newline to rest lines.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--eval_error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval_error.c b/eval_error.c
index 94fb18029..8c6a0f945 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -171,6 +171,7 @@ error_print(void)
}
if (tail) {
warn_print2(tail, elen - len - 1);
+ if (einfo[elen-1] != '\n') warn_print2("\n", 1);
}
}
}