lib/bolt/error.rb in bolt-3.4.0 vs lib/bolt/error.rb in bolt-3.5.0

- old
+ new

@@ -59,9 +59,24 @@ def initialize(msg) super(msg, "bolt/cli-error") end end + class ContainerFailure < Bolt::Error + attr_reader :result + + def initialize(result) + details = { + 'value' => result.value, + 'object' => result.object + } + message = "Plan aborted: Running container '#{result.object}' failed." + super(message, 'bolt/container-failure', details) + @result = result + @error_code = 2 + end + end + class RunFailure < Bolt::Error attr_reader :result_set def initialize(result_set, action, object = nil) details = {