update note.java to find error.

This commit is contained in:
astroshim 2015-11-30 19:04:40 +09:00
parent 861f6524c8
commit dbd2d03905

View file

@ -334,6 +334,9 @@ public class Note implements Serializable, JobListener {
Paragraph p = getParagraph(paragraphId);
p.setNoteReplLoader(replLoader);
p.setListener(jobListenerFactory.getParagraphJobListener(this));
logger.info("run note paragraphId={}, p={}", paragraphId, p);
Interpreter intp = replLoader.get(p.getRequiredReplName());
if (intp == null) {
throw new InterpreterException("Interpreter " + p.getRequiredReplName() + " not found");