From fce3e70285cf83a8011614b12bb955db744903e8 Mon Sep 17 00:00:00 2001 From: Matt Ball Date: Wed, 28 Aug 2019 16:36:53 -0700 Subject: [PATCH] logging --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 8e3879c68..55844113d 100644 --- a/index.js +++ b/index.js @@ -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)) } }) }