Catch JRuby/Coffee exception correctly
This commit is contained in:
parent
5cff7cd9c1
commit
9f7f3370aa
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue