Skip to content

Commit

Permalink
Crystal 1.11.0 compability
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Jan 8, 2024
1 parent 80d35a3 commit d40cdb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lavinmq/http/controller/static.cr
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module LavinMQ
begin
context.response.write(bytes)
rescue ex : IndexError
raise IO::Error.new(cause: ex)
raise IO::Error.new(ex.message)
end
end
else # client doesn't want deflated bodies
Expand All @@ -57,7 +57,7 @@ module LavinMQ
begin
context.response.write(bytes)
rescue ex : IndexError
raise IO::Error.new(cause: ex)
raise IO::Error.new(ex.message)
end
end
end
Expand Down

0 comments on commit d40cdb3

Please sign in to comment.