Ghost/core/server/controllers/frontend
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
..
channel-config.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
channels.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
context.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
error.js Split helper functions from frontend controller 2015-10-22 18:46:58 +01:00
fetch-data.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
format-response.js Switch frontend controller to use new filter param 2015-10-26 09:40:19 +00:00
index.js ⏱ 🛠 Add debug@2.2.0 & wire up in key places (#7469) 2016-10-03 10:33:14 +02:00
post-lookup.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
render-channel.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
secure.js Split helper functions from frontend controller 2015-10-22 18:46:58 +01:00
templates.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00