Ghost/core/test/unit/middleware
Katharina Irrgang d81bc91bd2 Error creation (#7477)
refs #7116, refs #2001

- Changes the way Ghost errors are implemented to benefit from proper inheritance
- Moves all error definitions into a single file
- Changes the error constructor to take an options object, rather than needing the arguments to be passed in the correct order.
- Provides a wrapper so that any errors that haven't already been converted to GhostErrors get converted before they are displayed.

Summary of changes:

* 🐛  set NODE_ENV in config handler
*   add GhostError implementation (core/server/errors.js)
  - register all errors in one file
  - inheritance from GhostError
  - option pattern
* 🔥  remove all error files
*   wrap all errors into GhostError in case of HTTP
* 🎨  adaptions
  - option pattern for errors
  - use GhostError when needed
* 🎨  revert debug deletion and add TODO for error id's
2016-10-06 13:27:35 +01:00
..
api improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
cache-control_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
check-ssl_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
cors_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
decide-is-admin_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
redirect-to-setup_spec.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
serve-shared-file_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
spam-prevention_spec.js fix: spam prevention spec (#6992) 2016-07-14 16:11:58 +02:00
static-theme_spec.js allow manifest.json in theme root (#6986) 2016-06-29 14:44:01 -06:00
theme-handler_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
uncapitalise_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00