mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/io-console] Use sys_fail_fptr macro
https://github.com/ruby/io-console/commit/2b8ba023c8
This commit is contained in:
parent
7df6eaf29e
commit
be575a6eef
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user