Skip to content

Commit

Permalink
Fix compile error on main branch (#1910)
Browse files Browse the repository at this point in the history
```
In src/lucky/error_action.cr:83:34

 83 | body: Lucky::ExceptionPage.for_runtime_exception(context, error).to_s,
                                 ^--------------------
Error: Error: undefined method 'for_runtime_exception' for Lucky::ExceptionPage.class
```
  • Loading branch information
akadusei authored Oct 5, 2024
1 parent dd21f8b commit fafdc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lucky/error_action.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit fafdc3d

Please sign in to comment.