Skip to content

Commit

Permalink
fix: show lighthouse runtime error when re-queuing failed routes (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkoppede authored Nov 6, 2024
1 parent 09af56d commit b871d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/puppeteer/tasks/lighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const runLighthouseTask: PuppeteerTask = async (props) => {
}

if (report.categories.performance && !report.categories.performance.score) {
logger.warn(`Lighthouse failed to run performance audits for "${routeReport.route.path}", adding back to queue.`)
logger.warn(`Lighthouse failed to run performance audits for "${routeReport.route.path}", adding back to queue${report.runtimeError ? `: ${report.runtimeError.message}` : '.'}`)
routeReport.tasks.runLighthouseTask = 'failed-retry'
return routeReport
}
Expand Down

0 comments on commit b871d03

Please sign in to comment.