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: 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