summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-11-17 10:07:08 -0800
committerSerdar Sutay <serdar@opscode.com>2014-11-17 13:59:00 -0800
commit2e11be7fdd5748159cf9824fc20c2042879f1c8b (patch)
tree9ad01e5969548967abf48e863944eaff08778ed1 /lib/chef/exceptions.rb
parentf7ca9bf15b2c1e786ada6500e3a94cf8d78a49eb (diff)
downloadchef-2e11be7fdd5748159cf9824fc20c2042879f1c8b.tar.gz
Dedicated error for content staging issues. Comment fixes in config.rb.
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 25f08455fc..93fdd414e4 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -126,6 +126,13 @@ class Chef
class CannotDetermineHomebrewOwner < Package; end
+ # Can not create staging file during file deployment
+ class FileContentStagingError < RuntimeError
+ def initialize(errors)
+ super "Staging tempfile can not be created during file deployment.\n Errors: #{errors.join('\n')}!"
+ end
+ end
+
# A different version of a cookbook was added to a
# VersionedRecipeList than the one already there.
class CookbookVersionConflict < ArgumentError ; end