Merge pull request #93 from jmoriau/fix-typo-exception
fixed small redundancy.
This commit is contained in:
commit
fe10d210c3
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ class Kemal::CommonErrorHandler < HTTP::Handler
|
|||
begin
|
||||
call_next context
|
||||
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)
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue