better error when publish resolver from custom configuration doesn't exist

This commit is contained in:
Mark Harrah 2011-08-22 22:48:21 -04:00
parent e73e0938eb
commit 6961dff60e
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ object IvyActions
import configuration._
module.withModule(log) { case (ivy, md, default) =>
val resolver = ivy.getSettings.getResolver(resolverName)
if(resolver eq null) error("Undefined resolver '" + resolverName + "'")
val ivyArtifact = ivyFile map { file => (MDArtifact.newIvyArtifact(md), file) }
val is = crossIvyScala(module.moduleSettings)
val as = mapArtifacts(md, is, artifacts) ++ ivyArtifact.toList