mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
[redbean] Add details to OnError Hook (#1324)
The details of the error was missing, this PR add details to the OnError hook so we can now get why the error occurs
This commit is contained in:
parent
1312f60245
commit
ad0a7c67c4
2 changed files with 3 additions and 2 deletions
|
@ -569,7 +569,7 @@ HOOKS
|
|||
*). See functions like Route which asks redbean to do its default
|
||||
thing from the handler.
|
||||
|
||||
OnError(status:int, message:string)
|
||||
OnError(status:int, message:string, details:string)
|
||||
If this function is defined and if any errors occurs in
|
||||
OnHttpRequest() then this method will be called instead of displaying
|
||||
the default error page. Useful if you need to display the error page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue