0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Renamed BasicErorRenderer to BasicErrorRenderer (#9358)

no issue

- typo 🙊
This commit is contained in:
汪磊 2018-01-02 17:33:43 +08:00 committed by Katharina Irrgang
parent bcf6e9f517
commit 7a98c99cba

View file

@ -147,7 +147,7 @@ _private.HTMLErrorRenderer = function HTMLErrorRender(err, req, res, next) { //
}); });
}; };
_private.BasicErorRenderer = function BasicErrorRenderer(err, req, res, next) { // eslint-disable-line no-unused-vars _private.BasicErrorRenderer = function BasicErrorRenderer(err, req, res, next) { // eslint-disable-line no-unused-vars
return res.send(res.statusCode + ' ' + err.message); return res.send(res.statusCode + ' ' + err.message);
}; };
@ -174,7 +174,7 @@ errorHandler.handleHTMLResponse = [
// Render the error using HTML format // Render the error using HTML format
_private.HTMLErrorRenderer, _private.HTMLErrorRenderer,
// Fall back to basic if HTML is not explicitly accepted // Fall back to basic if HTML is not explicitly accepted
_private.BasicErorRenderer _private.BasicErrorRenderer
]; ];
errorHandler.handleThemeResponse = [ errorHandler.handleThemeResponse = [
@ -183,7 +183,7 @@ errorHandler.handleThemeResponse = [
// Render the error using theme template // Render the error using theme template
_private.ThemeErrorRenderer, _private.ThemeErrorRenderer,
// Fall back to basic if HTML is not explicitly accepted // Fall back to basic if HTML is not explicitly accepted
_private.BasicErorRenderer _private.BasicErrorRenderer
]; ];
module.exports = errorHandler; module.exports = errorHandler;