Debug: Add post.url if amp parse error happens (#9091)

no issue
- if AMP parse failed, we want to figure out which url is/was affected
This commit is contained in:
Katharina Irrgang 2017-10-04 11:01:00 +02:00 committed by Kevin Ansfield
parent 5f44972d44
commit c4b2e8035d

View File

@ -132,8 +132,9 @@ function getAmperizeHTML(html, post) {
if (err) {
if (err.src) {
logging.error(new errors.GhostError({
message: 'AMP HTML couldn\'t get parsed: ' + err.src,
err: err,
context: 'AMP HTML couldn\'t get parsed: ' + err.src,
context: post.url,
help: i18n.t('errors.apps.appWillNotBeLoaded.help')
}));
} else {