0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
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 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
auth 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
controllers/frontend Error creation (#7477) 2016-10-06 13:27:35 +01:00
mail 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
metadata 🚨 change logic for test/utils/configUtils 2016-09-20 15:59:34 +01:00
middleware Error creation (#7477) 2016-10-06 13:27:35 +01:00
models/base improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
models_plugins change default order of posts (#7096) 2016-07-15 11:04:10 +01:00
scheduling Error creation (#7477) 2016-10-06 13:27:35 +01:00
server_helpers 💄 Misc cleanup in middleware, helpers & apps (#7479) 2016-10-04 19:09:18 +02:00
sitemap 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
storage Error creation (#7477) 2016-10-06 13:27:35 +01:00
utils 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
api_utils_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
apps_filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
apps_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
config_spec.js 🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling) 2016-09-20 15:59:34 +01:00
exporter_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_url_spec.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
importer_spec.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
migration_fixture_utils_spec.js 🎨 Separate invites from user 2016-09-26 11:08:43 +02:00
migration_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
permissions_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
rss_spec.js Do not show internal tags in RSS feed (#7385) 2016-09-14 19:14:08 +01:00
server_helpers_index_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_helpers_template_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
server_utils_spec.js 🔥 remove implementation of validate themes (#7490) 2016-10-05 15:04:03 +01:00
showdown_client_integrated_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
slack_spec.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
social-urls_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
utils_pipeline_spec.js Update mocha to version 3.0.2 🚀 (#7165) 2016-08-11 08:51:19 +01:00
versioning_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
xmlrpc_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00