mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
to short msg and removed confusion code.
This commit is contained in:
parent
b9e197c939
commit
9b42898f78
1 changed files with 10 additions and 6 deletions
|
|
@ -472,12 +472,16 @@ public class Note implements Serializable, ParagraphJobListener {
|
|||
logger.debug("New paragraph: {}", pText);
|
||||
p.setEffectiveText(pText);
|
||||
} else {
|
||||
InterpreterException intpException;
|
||||
intpException = new InterpreterException(
|
||||
"Pargaraph " + p.getJobName() + "'s Interpreter " + requiredReplName + " not found");
|
||||
p.setReturn(
|
||||
new InterpreterResult(InterpreterResult.Code.ERROR, intpException.getMessage()),
|
||||
intpException);
|
||||
String intpExceptionMsg = String.format("%s",
|
||||
p.getJobName()
|
||||
+ "'s Interpreter "
|
||||
+ requiredReplName + " not found"
|
||||
);
|
||||
InterpreterException intpException = new InterpreterException(intpExceptionMsg);
|
||||
InterpreterResult intpResult = new InterpreterResult(
|
||||
InterpreterResult.Code.ERROR, intpException.getMessage()
|
||||
);
|
||||
p.setReturn(intpResult, intpException);
|
||||
p.setStatus(Job.Status.ERROR);
|
||||
throw intpException;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue