summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-06-16 10:26:38 -0500
committerLuke Kanies <luke@madstop.com>2009-06-16 10:26:38 -0500
commit4036de9591bc1ab19df3a0c3bae4567240a4ec85 (patch)
tree9b9a9c58242851a184f85cbcf159950dbb5fc732 /lib/puppet
parented876e0264bbb1ba86bc302d517d8f48f388da3e (diff)
downloadpuppet-4036de9591bc1ab19df3a0c3bae4567240a4ec85.tar.gz
puppet-4036de9591bc1ab19df3a0c3bae4567240a4ec85.tar.xz
puppet-4036de9591bc1ab19df3a0c3bae4567240a4ec85.zip
Fixing #2094 - filebucket failures are clearer now
We just add a bit of information to the exception. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/network/client/dipper.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/network/client/dipper.rb b/lib/puppet/network/client/dipper.rb
index 8616d4f73..0e2dc1425 100644
--- a/lib/puppet/network/client/dipper.rb
+++ b/lib/puppet/network/client/dipper.rb
@@ -25,7 +25,12 @@ class Puppet::Network::Client::Dipper < Puppet::Network::Client
unless local?
contents = Base64.encode64(contents)
end
- return @driver.addfile(contents,file)
+ begin
+ return @driver.addfile(contents,file)
+ rescue => detail
+ puts detail.backtrace if Puppet[:trace]
+ raise Puppet::Error, "Could not back up %s: %s" % [file, detail]
+ end
end
# Retrieve a file by sum.