mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-01 20:22:29 +00:00
fix(socket) error -> Util.stringifyJSON(error)
This commit is contained in:
parent
0ad307d867
commit
dc1819333e
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue