Don't catch CoffeeScript errors when in build mode. Fixes #551

This commit is contained in:
Thomas Reynolds 2012-07-25 11:21:07 -07:00
parent 2f7371ca1f
commit 6ccf5e2db0
3 changed files with 9 additions and 1 deletions

View file

@ -29,6 +29,8 @@ module Middleman
# @param [Hash] locals
# @return [String]
def evaluate(context, locals, &block)
return super if context.build?
begin
super
rescue ::ExecJS::RuntimeError => e