lib/bolt/transport/base.rb in bolt-2.27.0 vs lib/bolt/transport/base.rb in bolt-2.28.0

- old
+ new

@@ -45,13 +45,13 @@ def with_events(target, callback, action) callback&.call(type: :node_start, target: target) result = begin - yield - rescue StandardError, NotImplementedError => e - Bolt::Result.from_exception(target, e, action: action) - end + yield + rescue StandardError, NotImplementedError => e + Bolt::Result.from_exception(target, e, action: action) + end callback&.call(type: :node_result, result: result) result end