feat: add link series to error message for better context (#265)

This commit is contained in:
Georges Sabbagh
2020-10-06 21:45:03 -04:00
committed by GitHub
parent 85a07dc0dc
commit 332b4a8246
+1 -1
View File
@@ -52,7 +52,7 @@ async function lookup(browser: Browser, store: Store) {
try {
statusCode = await lookupCard(browser, store, page, link);
} catch (error) {
logger.error(`✖ [${store.name}] ${link.brand} ${link.model} - ${error.message as string}`);
logger.error(`✖ [${store.name}] ${link.brand} ${link.series} ${link.model} - ${error.message as string}`);
}
// Must apply backoff before closing the page, e.g. if CloudFlare is