mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (ruby_init): Print ruby_setup() error only in debug mode.
Unsupressable error message is not a good idea. Note that the message is printed sometimes with following code (highly timing dependent, though): pid = spawn("ruby -e ''"); Process.kill(:TERM, pid) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c7d6c0d084
commit
d4959439ab
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
Fri Jan 2 18:41:20 2015 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* eval.c (ruby_init): Print ruby_setup() error only in debug mode.
|
||||
Unsupressable error message is not a good idea.
|
||||
Note that the message is printed sometimes with following
|
||||
code (highly timing dependent, though):
|
||||
pid = spawn("ruby -e ''"); Process.kill(:TERM, pid)
|
||||
|
||||
Fri Jan 2 16:18:44 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/ruby/test_module.rb: Refactor invalid testcase.
|
||||
|
|
3
eval.c
3
eval.c
|
@ -73,7 +73,8 @@ ruby_init(void)
|
|||
{
|
||||
int state = ruby_setup();
|
||||
if (state) {
|
||||
error_print();
|
||||
if (RTEST(ruby_debug))
|
||||
error_print();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue