1
0
Fork 0
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:
Nobuyoshi Nakada 2021-06-14 21:15:12 +09:00
parent 1ab71a5b98
commit b513fc2fe7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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");
}
}