From 947237598d379be858f4758b0118003fd0a26262 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 24 May 2024 09:10:43 +0200 Subject: [PATCH] Add errors to the job log --- testrunner/src/testrunners/docker-testrunner.js | 1 + testrunner/src/testrunners/testrunner.js | 1 + 2 files changed, 2 insertions(+) diff --git a/testrunner/src/testrunners/docker-testrunner.js b/testrunner/src/testrunners/docker-testrunner.js index e797abd..6903c47 100644 --- a/testrunner/src/testrunners/docker-testrunner.js +++ b/testrunner/src/testrunners/docker-testrunner.js @@ -103,6 +103,7 @@ export default async function runJob(job) { }; } catch (error) { logger.error('Failed to execute job: %s', error.message, job.data.url); + job.log('Job failed:' + error.message); await cleanupWorkingDirectory(workingDirectory, logger); throw error; } diff --git a/testrunner/src/testrunners/testrunner.js b/testrunner/src/testrunners/testrunner.js index 953f2bc..ccffbdc 100644 --- a/testrunner/src/testrunners/testrunner.js +++ b/testrunner/src/testrunners/testrunner.js @@ -64,6 +64,7 @@ export default async function runJob(job) { } } catch (error) { logger.error('Job execution failed: %s', error.message); + job.log('Job failed:' + error.message); throw error; } finally { if (workingDirectory) {