lib/evil/client/resolver.rb in evil-client-3.0.2 vs lib/evil/client/resolver.rb in evil-client-3.0.3

- old
+ new

@@ -44,19 +44,20 @@ def __call__ logger = @__settings__.logger yield.tap do |obj| logger&.debug(self.class) { "resolved #{self} to #{obj.inspect}" } end - rescue StandardError => err - logger&.error(self.class) { "failed to resolve #{self}: #{err.message}" } + rescue StandardError => e + logger&.error(self.class) { "failed to resolve #{self}: #{e.message}" } raise end def __blocks__ @__blocks__ ||= [].tap do |blocks| schema = @__schema__ loop do break unless schema + block = schema.definitions.dig(*@__keys__) schema = schema.parent blocks.unshift block if block end end