From 8838a7af078c9ba8dacd277e3dc71e8812eefed5 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Mon, 29 Dec 2025 10:56:00 +1100 Subject: [PATCH] Fix runner.js crash - basic check for LHR existence --- lib/runner.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/runner.js b/lib/runner.js index 8249241..587eea4 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -147,6 +147,9 @@ async function _executeTest(url, options) { // Prepare JSON Summary const lhr = runnerResult.lhr; + if (!lhr) { + throw new Error('Lighthouse failed to generate a report (no LHR).'); + }