lib/bolt/error.rb in bolt-0.21.1 vs lib/bolt/error.rb in bolt-0.21.2

- old
+ new

@@ -75,9 +75,15 @@ def self.from_error(err) new(err.msg, err.kind, err.details, err.issue_code) end end + class ApplyError < Error + def initialize(target, err) + super("Apply failed to compile for #{target}: #{err}", 'bolt/apply-error') + end + end + class InvalidPlanResult < Error def initialize(plan_name, result_str) super("Plan #{plan_name} returned an invalid result: #{result_str}", 'bolt/invalid-plan-result', { 'plan_name' => plan_name,