buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r922877 - /buildr/trunk/lib/buildr/packaging/artifact.rb
Date Sun, 14 Mar 2010 15:24:30 GMT
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)}"



Mime
View raw message