mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed method names in exception messages
These methods are not !-suffixed, and the messages were very confusing.
This commit is contained in:
parent
1ab71a5b98
commit
b513fc2fe7
1 changed files with 4 additions and 4 deletions
|
@ -59,19 +59,19 @@ static void
|
|||
verify_interface(VALUE scheduler)
|
||||
{
|
||||
if (!rb_respond_to(scheduler, id_block)) {
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #block!");
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #block");
|
||||
}
|
||||
|
||||
if (!rb_respond_to(scheduler, id_unblock)) {
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #unblock!");
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #unblock");
|
||||
}
|
||||
|
||||
if (!rb_respond_to(scheduler, id_kernel_sleep)) {
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #kernel_sleep!");
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #kernel_sleep");
|
||||
}
|
||||
|
||||
if (!rb_respond_to(scheduler, id_io_wait)) {
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #io_wait!");
|
||||
rb_raise(rb_eArgError, "Scheduler must implement #io_wait");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue