From 5fbdb023ecd4be5b887a2b8d1e65b6d46d4d63b7 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Tue, 15 Oct 2024 10:16:37 +0200 Subject: [PATCH] Re-throw sitespeed.io errors to the queue. (#94) https://github.com/sitespeedio/onlinetest/issues/91 --- testrunner/src/testrunners/testrunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testrunner/src/testrunners/testrunner.js b/testrunner/src/testrunners/testrunner.js index 5b50cde..60831ee 100644 --- a/testrunner/src/testrunners/testrunner.js +++ b/testrunner/src/testrunners/testrunner.js @@ -167,7 +167,7 @@ async function runTest(job, workingDirectory, configFileName, logger) { } catch (error) { // if sitespeed.io exits with 0 zero, execa will throw an error logger.error('Could not run sitespeed.io', error); - exitCode = error.exitCode; + throw error; } try { const result = await readFile(