diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-11-17 10:07:08 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-11-17 13:59:00 -0800 |
commit | 2e11be7fdd5748159cf9824fc20c2042879f1c8b (patch) | |
tree | 9ad01e5969548967abf48e863944eaff08778ed1 /lib/chef/exceptions.rb | |
parent | f7ca9bf15b2c1e786ada6500e3a94cf8d78a49eb (diff) | |
download | chef-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.rb | 7 |
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 |