From e04483d0270033ff0a47192e5884bc28c5b6a303 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 11 Jan 2017 15:02:02 -0800 Subject: [PATCH] Use the same exit code as standard (1) Fixes: https://github.com/feross/snazzy/issues/15 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 29699fb..1c52c15 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ CompactToStylishStream.prototype._flush = function (cb) { var output = processResults(jsonResults) this.push(output) - this.exitCode = output === '' ? 0 : -1 + this.exitCode = output === '' ? 0 : 1 cb(null) }