aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-14 00:20:04 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-14 00:34:48 -0500
commit39a716a4cd54bf9e35ba60b5d40ed0f9a117e55b (patch)
tree4f170d350185dddb405fe5d19c8375f3b16711a4 /stage1
parent8f694428e1f206702c3172440ccf896c8b501941 (diff)
downloadcbt-39a716a4cd54bf9e35ba60b5d40ed0f9a117e55b.tar.gz
cbt-39a716a4cd54bf9e35ba60b5d40ed0f9a117e55b.tar.bz2
cbt-39a716a4cd54bf9e35ba60b5d40ed0f9a117e55b.zip
more debugging info for a bug observed with compiling dotty
Diffstat (limited to 'stage1')
-rw-r--r--stage1/Stage1Lib.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala
index d44f30b..cbf62dc 100644
--- a/stage1/Stage1Lib.scala
+++ b/stage1/Stage1Lib.scala
@@ -413,7 +413,11 @@ ${sourceFiles.sorted.mkString(" \\\n")}
def actual(current: Dependency, latest: Map[(String,String),Dependency]) = current match {
- case d: ArtifactInfo => latest((d.groupId,d.artifactId))
+ case d: ArtifactInfo =>
+ val key = (d.groupId,d.artifactId)
+ latest.get(key).getOrElse(
+ throw new Exception( s"This should never happend. Could not find $key in \n"++latest.map{case (k,v) => k+" -> "+v}.mkString("\n") )
+ )
case d => d
}