mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
fixed small redundancy.
This commit is contained in:
parent
9ae01c68e9
commit
f5b5260ab9
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ class Kemal::CommonErrorHandler < HTTP::Handler
|
||||||
begin
|
begin
|
||||||
call_next context
|
call_next context
|
||||||
rescue ex : Kemal::Exceptions::RouteNotFound
|
rescue ex : Kemal::Exceptions::RouteNotFound
|
||||||
Kemal.config.logger.write("Exception: #{ex.to_s}: #{ex.message}\n")
|
Kemal.config.logger.write("Exception: #{ex.to_s}\n")
|
||||||
return render_404(context)
|
return render_404(context)
|
||||||
rescue ex
|
rescue ex
|
||||||
Kemal.config.logger.write("Exception: #{ex.to_s}: #{ex.message}\n")
|
Kemal.config.logger.write("Exception: #{ex.to_s}\n")
|
||||||
return render_500(context, ex.to_s)
|
return render_500(context, ex.to_s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue