diff --git a/src/lucky/error_action.cr b/src/lucky/error_action.cr index ad7ba4a1d..a708a7241 100644 --- a/src/lucky/error_action.cr +++ b/src/lucky/error_action.cr @@ -80,7 +80,7 @@ abstract class Lucky::ErrorAction def render_exception_page(error : Exception, status : Int) : Lucky::Response send_text_response( - body: Lucky::ExceptionPage.for_runtime_exception(context, error).to_s, + body: Lucky::ExceptionPage.new(context, error).to_s, content_type: "text/html", status: status )