mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
4198f1473a
commit
f96f013955
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 26 02:45:04 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval_error.c (error_print): put a newline after an anonymous
|
||||
exception class name.
|
||||
|
||||
Wed Jun 25 22:31:32 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* hash.c (ruby_setenv): fix memory leak on Windows, free
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -618,4 +618,8 @@ end.join
|
|||
e = assert_raise(exc, bug) {raise exc, {}}
|
||||
assert_equal({}, e.arg, bug)
|
||||
end
|
||||
|
||||
def test_anonymous_message
|
||||
assert_in_out_err([], "raise Class.new(RuntimeError), 'foo'", [], /foo\n/)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue