File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ dependencies:
47
47
version : ~> 0.4.3
48
48
exception_page :
49
49
github : crystal-loot/exception_page
50
- version : ~> 0.4.1
50
+ version : ~> 0.5.0
51
51
dexter :
52
52
github : luckyframework/dexter
53
53
version : ~> 0.3.4
Original file line number Diff line number Diff line change @@ -79,8 +79,19 @@ abstract class Lucky::ErrorAction
79
79
end
80
80
81
81
def render_exception_page (error : Exception , status : Int ) : Lucky ::Response
82
+ exception_page = Lucky ::ExceptionPage .new(
83
+ error,
84
+ context.request.method,
85
+ context.request.path,
86
+ context.response.status,
87
+ " Error #{ context.response.status.to_i } #{ context.response.status.description } " ,
88
+ context.request.query_params,
89
+ context.response.headers,
90
+ context.response.cookies,
91
+ error.message,
92
+ )
82
93
send_text_response(
83
- body: Lucky :: ExceptionPage .new(context, error) .to_s,
94
+ body: exception_page .to_s,
84
95
content_type: " text/html" ,
85
96
status: status
86
97
)
You can’t perform that action at this time.
0 commit comments