lib/figleaf/config.rb in figleaf-0.2.7 vs lib/figleaf/config.rb in figleaf-0.2.9

- old
+ new

@@ -7,10 +7,12 @@ def call(&block) instance_eval(&block) property + rescue Exception => e + raise Settings::InvalidRb, "Configuration has invalid Ruby\n" + e.message end def method_missing(method_name, *args, &block) process_method(method_name, *args, &block) end @@ -48,8 +50,10 @@ if val.is_a?(Proc) val.call else val end + rescue => e + raise Settings::InvalidRb, "Configuration has invalid Ruby\n" + e.message end end end