mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Send exitvalue of shell command in interpreter result
This commit is contained in:
parent
d259c48e44
commit
4fd2113fda
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue