An errorHandler for app.request that shows why a request failed through Flarum's alerts: the server's words when it sent any, otherwise the string fallbackKey names. It replaces Flarum's generic alert rather than adding a second one beside it.
errorHandler
app.request
fallbackKey
An
errorHandlerforapp.requestthat shows why a request failed through Flarum's alerts: the server's words when it sent any, otherwise the stringfallbackKeynames. It replaces Flarum's generic alert rather than adding a second one beside it.