Skip to content

Commit

Permalink
feat: add link series to error message for better context (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcsabbagh authored Oct 7, 2020
1 parent 85a07dc commit 332b4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 332b4a8

Please sign in to comment.