Skip to content

Commit

Permalink
Add error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 11, 2024
1 parent 968a049 commit ca90da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io/stream/buffered.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def sysread(size, buffer)
end
end
rescue Errno::EBADF
raise ::IOError
raise ::IOError, "stream closed"
end
end
end

0 comments on commit ca90da4

Please sign in to comment.