Skip to content

Commit

Permalink
adding asset url to error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
jarv-aws committed May 26, 2015
1 parent 3ada916 commit 428e7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opsworks_commons/providers/assets_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def local_asset
# remove all downloaded file for this asset, also failed attemps.
::FileUtils.rm_rf(Dir["#{asset_basedir}.*"], :verbose => true) rescue Chef::Log.error "Couldn't cleanup downloaded assets for #{@new_resource.name}."
elsif @new_resource.ignore_failure
Chef::Log.error "Failed to download asset #{asset_name} for #{@new_resource.name}."
Chef::Log.error "Failed to download asset #{asset_name} for #{@new_resource.name} with url #{asset_url}."
elsif !@new_resource.ignore_failure
raise Chef::Exceptions::ResourceNotFound, "Failed to download asset #{@new_resource.asset} for #{@new_resource.name}."
raise Chef::Exceptions::ResourceNotFound, "Failed to download asset #{@new_resource.asset} for #{@new_resource.name} with url #{asset_url}."
end
end

0 comments on commit 428e7a8

Please sign in to comment.