def throwExceptionIfUpdateFailed()

in extractor/src/main/scala-sbt-1.0-1.x/sbt/jetbrains/PluginCompatCommonSbt1.scala [19:27]


  def throwExceptionIfUpdateFailed(result: Result[Map[sbt.Configuration,Keys.Classpath]]): Map[sbt.Configuration, Keys.Classpath] =
    result match {
      case sbt.Value(classpath) =>
        classpath
      case sbt.Inc(incomplete) =>
        val cause = Incomplete.allExceptions(incomplete).headOption
        cause.foreach(c => throw c)
        Map.empty
    }