diff --git a/cli.mjs b/cli.mjs index 6b1bca4..67a8d66 100644 --- a/cli.mjs +++ b/cli.mjs @@ -60,7 +60,10 @@ cli.processTargets().then(function() { printError(err) process.exit(1) }) -.then(function() { +.then(function(stats) { + if (stats.failed > 0) { + process.exit(10) + } process.exit(0) }, function(err) { console.error('\x1b[31mInternal error occured:\x1b[0m', err)