Skip to content

Commit

Permalink
Improved exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 3, 2024
1 parent 0940718 commit fad6bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/async/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def io_read(io, buffer, length, offset = 0)

if timeout = get_timeout(io)
timer = @timers.after(timeout) do
fiber.raise(::IO::TimeoutError, "execution expired")
fiber.raise(::IO::TimeoutError, "Timeout while waiting for IO to become readable!")
end
end

Expand All @@ -218,7 +218,7 @@ def io_write(io, buffer, length, offset = 0)

if timeout = get_timeout(io)
timer = @timers.after(timeout) do
fiber.raise(::IO::TimeoutError, "execution expired")
fiber.raise(::IO::TimeoutError, "Timeout while waiting for IO to become writable!")
end
end

Expand Down

0 comments on commit fad6bfd

Please sign in to comment.