diff --git a/src/methods/imgurAlbum.js b/src/methods/imgurAlbum.js index 87e56c4..6ffee3d 100644 --- a/src/methods/imgurAlbum.js +++ b/src/methods/imgurAlbum.js @@ -11,7 +11,7 @@ async function imgurAlbumApi(post) { }, }).then(res => res.json()).then((res) => { if (res.status !== 200) { - throw new Error(`Could not fetch info for imgur album '${post.host.id}': ${res.data.error} (${post.permalink})`); + throw new Error(`Could not fetch info for imgur album '${post.host.id}': ${res.data.error}`); } const extract = config.library.album.extractSingleItem && res.data.images.length === 1; @@ -54,7 +54,7 @@ async function imgurAlbum(post) { return imgurAlbumApi(post); } - throw new Error(`Could not fetch info for imgur album '${post.host.id}' (${res.statusText}) no API fallback configured (${post.permalink})`); + throw new Error(`Could not fetch info for imgur album '${post.host.id}' (${res.statusText}) no API fallback configured`); } const dataString = html.replace(/\s+/g, ' ').match(/}}, item:(.*)}; var PREBID_TIMEOUT/)[1]; diff --git a/src/methods/imgurImage.js b/src/methods/imgurImage.js index 06c18cb..ae1c89b 100644 --- a/src/methods/imgurImage.js +++ b/src/methods/imgurImage.js @@ -10,7 +10,7 @@ async function imgurImageApi(post) { }, }).then(res => res.json()).then((res) => { if (res.status !== 200) { - throw new Error(`Could not fetch info for imgur image '${post.host.id}': ${res.data.error} (${post.permalink})`); + throw new Error(`Could not fetch info for imgur image '${post.host.id}': ${res.data.error}`); } return { @@ -39,7 +39,7 @@ async function imgurImage(post) { return imgurImageApi(post); } - throw new Error(`Could not scrape info for imgur image '${post.host.id}' (${res.statusText}), no API fallback configured (${post.permalink})`); + throw new Error(`Could not scrape info for imgur image '${post.host.id}' (${res.statusText}), no API fallback configured`); } const dataString = html.replace(/\s+/g, ' ').match(/}}, item:(.*)}; var PREBID_TIMEOUT/)[1];