diff --git a/lib/server/console.js b/lib/server/console.js index 6eb65aea..fcd64076 100644 --- a/lib/server/console.js +++ b/lib/server/console.js @@ -166,18 +166,18 @@ * @param callback */ function setExec(callback, error, stdout, stderr) { - var json, - errorStr = stderr || error; - - if (errorStr) - errorStr = addNewLine(errorStr + ''); - - json = { - stdout : stdout, - stderr : errorStr - }; - - Util.exec(callback, json, error, stderr); + var json, + errorStr = stderr || error; + + if (errorStr) + errorStr = addNewLine(errorStr + ''); + + json = { + stdout : stdout, + stderr : errorStr + }; + + Util.exec(callback, json, error, stderr); } function setSpawn(сommand, options, callback) {