Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed May 24, 2024
1 parent 701d065 commit c7065aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testrunner/src/testrunners/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,17 @@ async function runTest(job, workingDirectory, configFileName, logger) {
try {
const process = execa(binary, parameters);
process.stdout.on('data', chunk => {
logger.info(chunk.toString());
logger.debug(chunk.toString());
job.log(chunk.toString());
});
process.stderr.on('data', chunk => {
logger.info(chunk.toString());
logger.debug(chunk.toString());
job.log(chunk.toString());
});
await process;
} 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;
}
try {
Expand Down

0 comments on commit c7065aa

Please sign in to comment.