mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Fix recent changes to CustomException
(#673)
This commit is contained in:
parent
bef7351000
commit
7c47bbc150
1 changed files with 3 additions and 3 deletions
|
@ -13,9 +13,9 @@ module Kemal::Exceptions
|
|||
end
|
||||
|
||||
class CustomException < Exception
|
||||
def initialize(context : HTTP::Server::Context, message : String = "")
|
||||
@context = context
|
||||
@message = message
|
||||
def initialize(@context : HTTP::Server::Context, message : String? = nil)
|
||||
message ||= "Rendered error with #{context.response.status_code}"
|
||||
super message
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue