diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-07-19 14:18:43 -0700 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-07-25 12:54:34 -0700 |
commit | 3165364e20fc008b3997effafb290fe47c13bf42 (patch) | |
tree | ec9ac295ba3d6b6162ea184958248e06c770fea5 | |
parent | f484851b7528c0fcf1254d25a022e9cb7ef9b3bd (diff) | |
download | puppet-3165364e20fc008b3997effafb290fe47c13bf42.tar.gz puppet-3165364e20fc008b3997effafb290fe47c13bf42.tar.xz puppet-3165364e20fc008b3997effafb290fe47c13bf42.zip |
maint: Adding logging to include environment when source fails
Reviewed-by: Max Martin <max@puppetlabs.com>
-rwxr-xr-x | lib/puppet/type/file/source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/file/source.rb b/lib/puppet/type/file/source.rb index 6ebec51fe..2fb65bbad 100755 --- a/lib/puppet/type/file/source.rb +++ b/lib/puppet/type/file/source.rb @@ -154,7 +154,7 @@ module Puppet fail detail, "Could not retrieve file metadata for #{source}: #{detail}" end end - fail "Could not retrieve information from source(s) #{value.join(", ")}" unless result + fail "Could not retrieve information from environment #{Puppet[:environment]} source(s) #{value.join(", ")}" unless result result end |