Send exitvalue of shell command in interpreter result

This commit is contained in:
Karup 2016-01-17 15:56:33 +05:30
parent d259c48e44
commit 4fd2113fda

View file

@ -90,10 +90,11 @@ public class ShellInterpreter extends Interpreter {
String msg = errorStream.toString();
if (exitValue == 143) {
code = Code.INCOMPLETE;
msg = msg + "Paragraph received a SIGTERM";
msg = msg + "Paragraph received a SIGTERM.\n";
logger.info("The paragraph " + contextInterpreter.getParagraphId()
+ " stopped executing: " + msg);
}
msg += "Exitvalue: " + exitValue;
return new InterpreterResult(code, msg);
} catch (IOException e) {
logger.error("Can not run " + cmd, e);