diff --git a/ivy/IvyActions.scala b/ivy/IvyActions.scala index 88bd731cf..6eb2705a4 100644 --- a/ivy/IvyActions.scala +++ b/ivy/IvyActions.scala @@ -134,6 +134,7 @@ object IvyActions resolveOptions.setLog(LogOptions.LOG_DOWNLOAD_ONLY) val resolveReport = ivy.resolve(module, resolveOptions) if(resolveReport.hasError) - error(Set(resolveReport.getAllProblemMessages.toArray: _*).mkString("\n")) + throw new ResolveException(resolveReport.getAllProblemMessages.toArray.map(_.toString).toList.removeDuplicates) } -} \ No newline at end of file +} +final class ResolveException(messages: List[String]) extends RuntimeException(messages.mkString("\n")) \ No newline at end of file