summaryrefslogtreecommitdiffstats
path: root/lib/puppet.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r--lib/puppet.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index d09c81801..7293ce2fb 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -132,13 +132,13 @@ module Puppet
Puppet.err detail.to_s
return false
rescue => detail
- Puppet.err "Could not create %s: %s" % [path, detail.to_s]
+ Puppet.err "Could not create #{path}: #{detail}"
return false
end
elsif FileTest.directory?(File.join(path))
next
else FileTest.exist?(File.join(path))
- raise Puppet::Error, "Cannot create %s: basedir %s is a file" % [dir, File.join(path)]
+ raise Puppet::Error, "Cannot create #{dir}: basedir #{File.join(path)} is a file"
end
}
return true