mozilla/nunjucks — pull request #306 by eventEmitter (2014-10-22 10:57:57+00:00)
Title: async rendering doesn't throw anymore when encountering compilation errors

fixes http://github.com/mozilla/nunjucks/issues/233

when calling the `render` or `renderString` method with a callback and the template contains a syntax error an error is thrown instead of returning the error to the callback. This patch fixes this behavior. Compilation errors are now returned to the callback.