fix(socket) error -> Util.stringifyJSON(error)

This commit is contained in:
coderaiser 2013-07-11 13:28:34 +00:00
parent 0ad307d867
commit dc1819333e

View file

@ -177,9 +177,11 @@
*/
function getExec(pSocket, pConnNum){
return function(pError, pStdout, pStderr) {
var lExec = {
var lErrorJSON = pStderr || pError,
lError = lErrorJSON && Util.stringifyJSON( lErrorJSON ),
lExec = {
stdout : pStdout,
stderr : pStderr || pError
stderr : lError
},
lExec_str = JSON.stringify(lExec);