mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
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:
parent
5f44972d44
commit
c4b2e8035d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user