You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2010/03/14 16:24:30 UTC

svn commit: r922877 - /buildr/trunk/lib/buildr/packaging/artifact.rb

Author: boisvert
Date: Sun Mar 14 15:24:28 2010
New Revision: 922877

URL: http://svn.apache.org/viewvc?rev=922877&view=rev
Log:
Improve error message; provide artifact spec if download fails because there's no repository defined.

Modified:
    buildr/trunk/lib/buildr/packaging/artifact.rb

Modified: buildr/trunk/lib/buildr/packaging/artifact.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/packaging/artifact.rb?rev=922877&r1=922876&r2=922877&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/packaging/artifact.rb (original)
+++ buildr/trunk/lib/buildr/packaging/artifact.rb Sun Mar 14 15:24:28 2010
@@ -373,7 +373,7 @@ module Buildr
       trace "Downloading #{to_spec}"
       remote = Buildr.repositories.remote.map { |repo_url| URI === repo_url ? repo_url : URI.parse(repo_url) }
       remote = remote.each { |repo_url| repo_url.path += '/' unless repo_url.path[-1] == '/' }
-      fail 'No remote repositories defined!' if remote.empty?
+      fail "Unable to download #{to_spec}. No remote repositories defined." if remote.empty?
       exact_success = remote.find do |repo_url|
         begin
           path = "#{group_path}/#{id}/#{version}/#{File.basename(name)}"