Catch JRuby/Coffee exception correctly

This commit is contained in:
Thomas Reynolds 2012-07-07 17:29:31 -07:00
parent 5cff7cd9c1
commit 9f7f3370aa

View file

@ -31,7 +31,9 @@ module Middleman
def evaluate(context, locals, &block)
begin
super
rescue ::ExecJS::RuntimeError=> e
rescue ::ExecJS::RuntimeError => e
e.to_s
rescue => e
e.to_s
end
end