Don't catch CoffeeScript errors when in build mode. Fixes #551
This commit is contained in:
parent
2f7371ca1f
commit
6ccf5e2db0
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue