lib/bolt/transport/base.rb in bolt-1.15.0 vs lib/bolt/transport/base.rb in bolt-1.16.0
- old
+ new
@@ -67,11 +67,11 @@
def with_events(target, callback)
callback&.call(type: :node_start, target: target)
result = begin
yield
- rescue StandardError, NotImplementedError => ex
- Bolt::Result.from_exception(target, ex)
+ rescue StandardError, NotImplementedError => e
+ Bolt::Result.from_exception(target, e)
end
callback&.call(type: :node_result, result: result)
result
end