Skip to content

Commit

Permalink
chore(error_handler): add support for latest exception_page
Browse files Browse the repository at this point in the history
it has a breaking change crystal-loot/exception_page#49
  • Loading branch information
stakach committed Oct 15, 2024
1 parent ed03b80 commit b970817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: action-controller
version: 7.4.2
version: 7.4.3
crystal: ">= 1.9.0"

dependencies:
Expand All @@ -11,7 +11,7 @@ dependencies:
version: ">= 0.5"
exception_page:
github: crystal-loot/exception_page
version: ">= 0.4"
version: ">= 0.5"

# Required for running specs in client apps
hot_topic:
Expand Down
2 changes: 1 addition & 1 deletion src/action-controller/error_handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ActionController::ErrorHandlerDevelopment
reset(response)

response.content_type = "text/html"
ActionController::ExceptionPage.for_runtime_exception(context, ex).to_s(context.response)
response.print ActionController::ExceptionPage.new(context, ex)
end
end

Expand Down

0 comments on commit b970817

Please sign in to comment.