mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-10-12 16:31:28 +11:00
Fix runner.js crash - basic check for LHR existence
This commit is contained in:
1 parent
390b9477f3
commit
8838a7af07
1 file changed
+3
@@ -147,6 +147,9 @@ async function _executeTest(url, options) {
|
|||||||
|
|
||||||
// Prepare JSON Summary
|
// Prepare JSON Summary
|
||||||
const lhr = runnerResult.lhr;
|
const lhr = runnerResult.lhr;
|
||||||
|
if (!lhr) {
|
||||||
|
throw new Error('Lighthouse failed to generate a report (no LHR).');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user