refactor(console) getExec

This commit is contained in:
coderaiser 2014-05-20 09:37:41 -04:00
parent d3fc54b24d
commit 3d4b1f3fc2

View file

@ -184,17 +184,12 @@
*/
function getExec(callback, error, stdout, stderr) {
var json,
errorStr = stderr || error,
isStr = Util.isString(errorStr);
errorStr = stderr || error;
if (errorStr) {
if (!isStr)
errorStr = errorStr.toString();
errorStr = CloudFunc.addNewLine(errorStr);
}
if (errorStr)
errorStr = CloudFunc.addNewLine(errorStr + '');
json = {
json = {
stdout : stdout,
stderr : errorStr
};