to short msg and removed confusion code.

This commit is contained in:
CloverHearts 2016-08-18 13:13:38 +09:00
parent b9e197c939
commit 9b42898f78

View file

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