From 6961dff60e6468ff775c7851d77b60bd1ef71e26 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 22 Aug 2011 22:48:21 -0400 Subject: [PATCH] better error when publish resolver from custom configuration doesn't exist --- ivy/IvyActions.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/ivy/IvyActions.scala b/ivy/IvyActions.scala index a1c26b020..c1eef5913 100644 --- a/ivy/IvyActions.scala +++ b/ivy/IvyActions.scala @@ -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