This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Override default error page #102
Comments
As mentioned in the errorHandler API documentation you can either pass a middleware or a path to an HTML file. I just added an example how to pass files for each error code const { errorHandler } = require('@feathersjs/express');
const app = feathers();
app.use(errorHandler({
html: {
404: 'path/to/notFound.html',
500: 'there/will/be/robots.html'
}
})); |
Thanks, I tried your example but I get this error: |
Oh yes, sorry it was |
Thanks! I got it to work using the previous code:
It's a bit confusing though as there are 2 feathers errors module, |
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to override the default feathers error page?
Eg. Placing a custom 404.html in /public folder?
The text was updated successfully, but these errors were encountered: