bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb in bolt-1.34.0 vs bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb in bolt-1.35.0
- old
+ new
@@ -31,10 +31,10 @@
@inventory ||= Puppet.lookup(:bolt_inventory)
end
def get_task(name, params = {})
tasksig = script_compiler.task_signature(name)
- raise Bolt::Error.new("#{name} could not be found", 'bolt/apply-prep') unless tasksig
+ raise Bolt::Error.new("Task '#{name}' could not be found", 'bolt/apply-prep') unless tasksig
errors = []
unless tasksig.runnable_with?(params) { |msg| errors << msg }
# This relies on runnable with printing a partial message before the first real error
raise Bolt::ValidationError, "Invalid parameters for #{errors.join("\n")}"