mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fixed bug with error code of program execution in terminal
This commit is contained in:
parent
6f2c42aa73
commit
6330b02408
3 changed files with 8 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ started.
|
|||
|
||||
* Removed resing event from jquery-terminal.
|
||||
|
||||
* Fixed bug with error code of program execution in terminal.
|
||||
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
|
|
|
|||
|
|
@ -73,9 +73,9 @@ var CloudCommander, io;
|
|||
|
||||
if(lStdout)
|
||||
lResult = lTerm.echo(lStdout);
|
||||
|
||||
if(lStderr)
|
||||
lResult = lTerm.error(lStderr);
|
||||
|
||||
if(lStderr && lStderr.code != 1)
|
||||
lResult = lTerm.error(lStderr.toString());
|
||||
}
|
||||
else{
|
||||
/* if term not accesable
|
||||
|
|
|
|||
|
|
@ -66,6 +66,9 @@ function onMessage(pConnNum, pSocket){
|
|||
lMsg = JSON.stringify(lMsg);
|
||||
pSocket.send(lMsg);
|
||||
|
||||
console.log('received from client: ' + pCommand);
|
||||
console.log('sended to client: ' + lMsg);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue