From 5abdc93d0e0cbdc4e6f5fe126adb15b9f4852375 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Mon, 28 Oct 2024 00:59:03 +0100 Subject: [PATCH 1/2] Bump exception_page shard to version ~> 0.5.0 --- shard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index 8207d0d..d0371c4 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: From b7b5ee4225a40c117d015f93344eeb1884056d8b Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Mon, 28 Oct 2024 01:05:24 +0100 Subject: [PATCH 2/2] Refactor usage of removed method --- src/kemal/helpers/templates.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal/helpers/templates.cr b/src/kemal/helpers/templates.cr index 0468d38..1769bd5 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