maxbeatty/jamoose — pull request #7 by cruzer911 (2014-08-21 22:53:59+00:00)
Title: need to catch compile time errors and return them in the callback

Problem: hogan compile time errors were not being reported on Raygun for event based email tasks. The reason behind this was that the errors thrown by hogan were never being handled (outside of express routes).

Proposed Solution is to add a try catch block around the `hogan.compile` call to catch and return the error in the callback.