Skip to content

Commit

Permalink
Add errors to the job log
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed May 24, 2024
1 parent 96443c2 commit 9472375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions testrunner/src/testrunners/docker-testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions testrunner/src/testrunners/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9472375

Please # to comment.