Mention register_error_handler in errorhandler doc
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The documentation for @errorhandler gives "app.error_handler_spec[None][404] = page_not_found" as an example for adding an error handler without the decorator. However, register_error_handler appears to be the correct way to do this (added 0.7), and it eliminates the problems with modifying error_handler_spec directly.
authored by Steve Leonard · committed by Steve Leonard · parent 6309987 · Browse files · 1 file+5 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+5 added−0 removed
- other:+5 added−0 removed