summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-02 13:43:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-02 13:43:47 +0000
commita953db445d3ffd86f7385c79a31e7e1ab576e620 (patch)
tree0fb34e312edec615f0a05a919d93539c4eb3572e /eval.c
parent6b42073a3479705f326cf4dc91acb3bf07fe50eb (diff)
* eval.c (error_print): put newline unless multiple line message ends
with a newline. [ruby-dev:32429] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 664b6340cc..3391849c38 100644
--- a/eval.c
+++ b/eval.c
@@ -1298,8 +1298,9 @@ error_print()
warn_print2(RSTRING(epath)->ptr, RSTRING(epath)->len);
warn_print(")\n");
}
- if (tail) {
+ if (tail && elen>len+1) {
warn_print2(tail, elen-len-1);
+ if (einfo[elen-1] != '\n') warn_print2("\n", 1);
}
}
}