mirror of https://github.com/sbt/sbt.git
better error when publish resolver from custom configuration doesn't exist
This commit is contained in:
parent
e73e0938eb
commit
6961dff60e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue