38 Commits

Author SHA1 Message Date
jnardone
6801428f8f
fix(errors): Add 410 Gone to errors (#1849)
Co-authored-by: Joe Nardone <joe@wirewheel.io>
2020-03-23 21:16:56 -07:00
David Luecke
1c5c0d3539
chore: Move Express error handlers into @feathersjs/express (#1306) 2019-04-22 19:36:39 -07:00
Garry Polley
33fd0e4ae2 fix: Do not log as errors below a 500 response (#1256) 2019-04-22 10:43:03 -07:00
Nico Miebach
72132d1190 fix: Update 404.html (#984) 2018-09-08 10:17:37 -07:00
Nico Miebach
cec6baea05 fix: Update 401.html (#983) 2018-09-08 09:38:52 -07:00
Nico Miebach
3aa7c33a8d Update default.html (#985) 2018-09-07 13:24:52 -07:00
David Luecke
3e0801f750 Add a verbose flag to notFound handler (#107) 2018-08-20 19:58:09 -07:00
FreeLineTM
a4917f5e71 Add req.url to notFound handler message (#105) 2018-08-20 19:58:09 -07:00
Nikas Praninskas
b0de66e986 Fix instanceof and prototypical inheritance (#104) 2018-08-20 19:58:09 -07:00
David Luecke
4b5c62d962 Allow ability to log middleware errors (#95) 2018-08-20 19:58:09 -07:00
Ryan Wheale
f439148567 91 allow mixed config (#94)
* Allow mixture of options for custom error handling

* Update the README to include info on the error handler
2018-08-20 19:58:09 -07:00
David Luecke
1989161f2e Update to Buzzard infrastructure (#93)
* Update to new plugin infrastructure and npm scope (#92)

* Update to new plugin infrastructure and npm scope

* Update debug dependency

* Update year and release script

* Prepare prerelease

* 3.0.0-pre.1

* Updating changelog
2018-08-20 19:58:09 -07:00
David Luecke
7557a01c14 Merge pull request #23 from feathersjs/error-tests
Make fully CommonJS compatible and add error middleware tests
2018-08-20 19:58:09 -07:00
Eric Kryski
d4f1775df3 Merge pull request #22 from feathersjs/error-handler
adding error handler back
2018-08-20 19:58:09 -07:00
Eric Kryski
63b877dcc0 supporting immutable data. Closes #19 2018-08-20 19:58:09 -07:00
Eric Kryski
3629005ac8 cleaning up how errors are extended. Closes #20 2018-08-20 19:58:09 -07:00
David Luecke
84f25c0e08 Adding ES6 polyfill for compatibility with Node 0.10 2018-08-20 19:58:09 -07:00
Eric Kryski
910bcfa5fb exposing our generic FeathersError so that we can check error types in an error handler 2018-08-20 19:58:09 -07:00
Eric Kryski
4daeabb82b adding a couple more tests. Adding ability to pass in multiple errors without a message 2018-08-20 19:58:09 -07:00
Eric Kryski
eedb34dda8 Merge pull request #15 from feathersjs/es6-class-fix
Es6 class fix
2018-08-20 19:58:09 -07:00
Eric Kryski
88cfa7b11d exporting errors by default 2018-08-20 19:58:09 -07:00
Eric Kryski
be2e254388 removing unused compiled file 2018-08-20 19:58:09 -07:00
Eric Kryski
1acdbacc1a Merge pull request #13 from feathersjs/es6
complete rewrite. Closes #11 and #12.
2018-08-20 19:58:09 -07:00
Eric Kryski
f65e9b29d2 making error logs a little prettier 2018-08-20 19:58:09 -07:00
Eric Kryski
23f537d58a not showing stack traces for 404 errors 2018-08-20 19:58:09 -07:00
Eric Kryski
f850480f0f remove console.log 2018-08-20 19:58:09 -07:00
Eric Kryski
6b10577350 handling req.app.logger undefined 2018-08-20 19:58:09 -07:00
Eric Kryski
69cd92b21a looking for app.logger as well 2018-08-20 19:58:09 -07:00
Eric Kryski
5dde207aae adding support for mongoose validation errors. Closes #5 2018-08-20 19:58:09 -07:00
Eric Kryski
10012a4f46 removing console.log. Getting errors to work with generic errors 2018-08-20 19:58:09 -07:00
Eric Kryski
cb99b24c79 minor fixes to error handler. Now makes use of feathers logger if available 2018-08-20 19:58:09 -07:00
Eric Kryski
2035488980 Merge pull request #4 from feathersjs/core-compatible
Core compatible
2018-08-20 19:58:09 -07:00
Eric Kryski
f291e71108 Merge pull request #3 from feathersjs/default-html
Adding a default error page
2018-08-20 19:58:09 -07:00
Eric Kryski
8bd1625c1a fix html error handling. Redirect to /404 or /500 2018-08-20 19:58:09 -07:00
Eric Kryski
6456c2f125 exposing error types directly for use in service objects 2018-08-20 19:58:09 -07:00
Eric Kryski
622f479f14 adding jshint directive to ignore unused vars 2018-08-20 19:58:09 -07:00
Eric Kryski
0607fd7702 have the error handler working now and a working example 2018-08-20 19:58:09 -07:00
Eric Kryski
57600a8600 initial commit. 2018-08-20 19:58:09 -07:00