Fix TemplateStore gets unnecessary error messages from ResultConsumer #356
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.