better error message.

This commit is contained in:
Tomoyuki Sahara
2014-12-26 11:08:18 +09:00
parent 1d1f273ca9
commit c455544ee2
+1 -1
View File
@@ -437,7 +437,7 @@ mrb_io_sysread(mrb_state *mrb, mrb_value io)
}
break;
case -1: /* Error */
mrb_raise(mrb, E_IO_ERROR, "sysread failed");
mrb_sys_fail(mrb, "sysread failed");
break;
default:
if (RSTRING_LEN(buf) != ret) {