diff --git a/shard.yml b/shard.yml index 8207d0d9..d0371c49 100644 --- a/shard.yml +++ b/shard.yml @@ -10,7 +10,7 @@ dependencies: version: ~> 0.4.0 exception_page: github: crystal-loot/exception_page - version: ~> 0.4.1 + version: ~> 0.5.0 development_dependencies: ameba: diff --git a/src/kemal/helpers/templates.cr b/src/kemal/helpers/templates.cr index 0468d381..1769bd51 100644 --- a/src/kemal/helpers/templates.cr +++ b/src/kemal/helpers/templates.cr @@ -26,7 +26,7 @@ def render_500(context, exception, verbosity) context.response.status_code = 500 template = if verbosity - Kemal::ExceptionPage.for_runtime_exception(context, exception).to_s + Kemal::ExceptionPage.new(context, exception).to_s else Kemal::ExceptionPage.for_production_exception end