Skip to content

Fix TemplateStore gets unnecessary error messages from ResultConsumer #356

Yiyao Chen requested to merge feature/issue356-readLibrary into develop

Issue: attemptAllFormats does not correctly try the second attempt. Because MessageHandler in TemplateStore keeps the error message from the failed attempt, causing the second attempt to terminate

Fix: in loadTemplatesFromFile, change the order the two MessageHandler gets combined: consumer.getMessageHandler.combine(store.getMessageHandler()), and return the result. This action prevents MessageHandler in TemplateStore from getting unnecessary error messages.

Merge request reports