Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-ball committed Aug 28, 2019
1 parent 5d6ba73 commit fce3e70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function runNewman (options) {
newman.run(options).on('done', (err, summary) => {
console.log('in done')
console.log('err', err)
console.log('summaryerr', summary.error)
if (err || summary.error) {
core.setFailed('Newman run failed!' + (err || summary.error))
console.log('summaryerr', JSON.stringify(summary))
if (err || (summary.failures && summary.failures.length)) {
core.setFailed('Newman run failed!' + (err || summary.failures))
}
})
}

0 comments on commit fce3e70

Please sign in to comment.