Skip to content

Commit

Permalink
Merge pull request #1412 from choheekim/checkRunnerProcess
Browse files Browse the repository at this point in the history
Check runnerProcess has a truthy value
  • Loading branch information
johanneswuerbach committed Jul 30, 2020
2 parents 68c5369 + dd0714d commit 088dd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runners/to-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = function toResult(launcherId, err, code, runnerProcess, config,
message += 'Stdout: \n ' + runnerProcess.stdout + '\n';
}

if (config && config.get('debug')) {
if (config && config.get('debug') && runnerProcess && runnerProcess.name) {
log.info(runnerProcess.name + '.stdout', runnerProcess.stdout);
log.info(runnerProcess.name + '.stderr', runnerProcess.stderr);
}
Expand Down

0 comments on commit 088dd0f

Please sign in to comment.