0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server
Christopher Giffard 9c8b02949a 500 Series Error Handling & Stack Traces
Fixes #825

- Changes the way the error middleware is delivered in server.js, moving
  all the logic back into errorHandling.js
- Alters error logging to use console.error (probably more appropriate) instead
  of console.log
- Changes error tests to accomodate for these alterations
- Alters user-error and error hbs templates to incorporate stack traces
- Adds additional styling for error pages to accomodate stack traces
- Added logic to parse and deliver formatted stack traces

Notes:
======

- Jslint gets in the way of the regex I've got to use to parse the stack.
  (It cites 'security reasons' which are not relevant in this case.)
  I needed to add a condition to relax it at the top of errorHandling.js
- The stack trace should probably be added as a partial, but I figured it
  was out of scope for this PR.
2013-09-19 13:01:20 +10:00
..
controllers Import > Signout 2013-09-18 16:11:21 +01:00
data Removing Temporary importer 2013-09-18 23:24:26 +01:00
helpers Added meta title and description theme helpers 2013-09-17 22:11:02 +01:00
models Post settings menu tweaks 2013-09-17 11:51:24 +01:00
permissions Edit Post Permissions 2013-08-18 12:28:05 -05:00
plugins Improving the use of paths in Ghost 2013-08-12 15:37:23 +01:00
views 500 Series Error Handling & Stack Traces 2013-09-19 13:01:20 +10:00
api.js Add setting filter 2013-09-15 18:04:01 +02:00
errorHandling.js 500 Series Error Handling & Stack Traces 2013-09-19 13:01:20 +10:00
mail.js Mail documentation link is clickable 2013-09-16 18:34:20 +01:00
require-tree.js JSLint fixes for new version 2013-07-31 09:21:22 +01:00