mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
fix(socket) error: undefined
This commit is contained in:
parent
850703c75e
commit
8f168807d9
1 changed files with 4 additions and 3 deletions
|
|
@ -211,11 +211,12 @@
|
|||
function getExec(pSocket, pConnNum) {
|
||||
return function(pError, pStdout, pStderr) {
|
||||
var lErrorStr, lExecStr, lExec,
|
||||
lError = pError || pStderr;
|
||||
|
||||
lError = pStderr || pError;
|
||||
|
||||
if (lError) {
|
||||
if (!Util.isString(lError))
|
||||
if (Util.isString(lError))
|
||||
lErrorStr = lError;
|
||||
else
|
||||
lErrorStr = lError.toString();
|
||||
|
||||
lErrorStr = Util.addNewLine(lErrorStr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue