From e00cf6ee5389c675ea4212d72efa37e573781f7b Mon Sep 17 00:00:00 2001 From: jshkurti Date: Fri, 7 Aug 2015 17:05:06 +0200 Subject: [PATCH] fix #1506 --- lib/CLI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CLI.js b/lib/CLI.js index 1853aef8..60c95dcd 100644 --- a/lib/CLI.js +++ b/lib/CLI.js @@ -408,7 +408,7 @@ CLI._startJson = function(cmd, opts, jsonVia, cb) { if (err) return cb ? cb(new Error(err)) : exitCli(cst.ERROR_EXIT); // Start missing apps return startApps(apps_name, function(err, apps) { - return cb ? cb(err, apps) : speedList(); + return cb ? cb(err, apps) : speedList(err ? 1 : 0); }); }); return false;