From e0d3fd9eb1ee15351dd5c2b7d1607ac2df4ae27f Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 4 Dec 2024 01:12:59 +0100 Subject: [PATCH 1/2] Bump `exception_page` shard --- shard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index 29507d4..3913518 100644 --- a/shard.yml +++ b/shard.yml @@ -10,7 +10,7 @@ dependencies: exception_page: github: crystal-loot/exception_page - version: ~> 0.4.1 + version: ~> 0.5.0 development_dependencies: ameba: From c582dc4c86a741edba21db41cdf1d3a88f3cc0f7 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 4 Dec 2024 01:14:19 +0100 Subject: [PATCH 2/2] Replace usage of now-removed method from `exception_page` shard --- src/grip/handlers/exception.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grip/handlers/exception.cr b/src/grip/handlers/exception.cr index 11ce3de..07641fd 100644 --- a/src/grip/handlers/exception.cr +++ b/src/grip/handlers/exception.cr @@ -44,7 +44,7 @@ module Grip if @environment == "production" context.response.print("An error occured, please try again later.") else - context.response.print(Grip::Minuscule::ExceptionPage.for_runtime_exception(context, exception).to_s) + context.response.print(Grip::Minuscule::ExceptionPage.new(context, exception)) end context.response.close