summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-09 16:02:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-09 17:05:14 +0900
commitbe575a6eefbaea21550f2c378407dd405cd768bc (patch)
tree937b6389e86359982ba74bd9d7ef2d3609b11cfd
parent7df6eaf29e535be7c074e031892b8898a756fe24 (diff)
[ruby/io-console] Use sys_fail_fptr macro
https://github.com/ruby/io-console/commit/2b8ba023c8
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 58652d9..64f795d 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -618,7 +618,7 @@ console_echo_p(VALUE io)
GetOpenFile(io, fptr);
fd = GetReadFD(fptr);
- if (!getattr(fd, &t)) rb_sys_fail_str(fptr->pathv);
+ if (!getattr(fd, &t)) sys_fail_fptr(fptr);
return echo_p(&t) ? Qtrue : Qfalse;
}