diff --git a/lib/executor.js b/lib/executor.js index d86d994..fad5558 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -4,9 +4,8 @@ module.exports = { execute: function(binary, global_options, sub_command, fn){ exec([binary, global_options, sub_command].join(" "), function(err, stdout, stderr){ - if(err || stderr){ - if(!err) - err = new Error(stderr); + if (!err && stderr && stderr.indexOf('WARNING: fleetctl') === -1) { + err = new Error(stderr); } fn(err, stdout);