summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-12-26 11:08:18 +0900
committerTomoyuki Sahara <[email protected]>2014-12-26 11:08:18 +0900
commitc455544ee28e440f371c4f758f2b31ee69ec0877 (patch)
tree3f637a85cb13d659c0b641d590933ba418ca6436 /src
parent1d1f273ca93cee8342395805faba15b7c0d8d57d (diff)
downloadmruby-c455544ee28e440f371c4f758f2b31ee69ec0877.tar.gz
mruby-c455544ee28e440f371c4f758f2b31ee69ec0877.zip
better error message.
Diffstat (limited to 'src')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index e80483145..5a6079e99 100644
--- a/src/io.c
+++ b/src/io.c
@@ -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) {