lib/bolt/transport/base.rb in bolt-0.22.0 vs lib/bolt/transport/base.rb in bolt-0.23.0
- old
+ new
@@ -56,13 +56,13 @@
def with_events(target, callback)
callback&.call(type: :node_start, target: target)
result = begin
- yield
- rescue StandardError => ex
- Bolt::Result.from_exception(target, ex)
- end
+ yield
+ rescue StandardError => ex
+ Bolt::Result.from_exception(target, ex)
+ end
callback&.call(type: :node_result, result: result)
result
end