0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/web
Hannah Wolfe 0799f02e80
Rewritten HTMLErrorRenderer w/o asset helper & template
refs: 2af9e2e12

- This new HTMLErrorRenderer is borrowed heavily from finalHandler
   - This is the module that express uses to render errors if there is no custom errorhandler
- It just renders a really simple html page wrapping err.stack in a <pre>
   - This results in a nicely formatted, but unstyled error page
- I also updated BasicErrorRenderer to use the same res.statusCode + err.stack pattern rather than err.message

Note: This error renderer is _only_ used for renderering errors on the `/ghost/` route
 - In almost all cases, errors here are rendered by Ember
 - The only error that can be rendered here is a missing template error see: 2af9e2e12
2021-11-24 13:01:06 +00:00
..
admin Fixed error handling for missing admin templates 2021-11-24 12:30:41 +00:00
api Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
members Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
oauth Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
parent Renamed withBackend/withFrotned to backend/frontend 2021-11-22 21:56:32 +13:00
shared Rewritten HTMLErrorRenderer w/o asset helper & template 2021-11-24 13:01:06 +00:00
index.js
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00