fixed bug with error code of program execution in terminal

This commit is contained in:
coderaiser 2012-10-04 10:11:21 -04:00
parent 6f2c42aa73
commit 6330b02408
3 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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;
}
}