Attempt to improve key collision error message

This commit is contained in:
Havoc Pennington 2013-09-13 10:02:45 -04:00 committed by Mark Harrah
parent 7b1b33758c
commit 6ba517c19b
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ object Index
if(duplicates.isEmpty)
multiMap.collect { case (k, v) if validID(k) => (k, v.head) } toMap;
else
sys.error(duplicates map { case (k, tps) => "'" + k + "' (" + tps.mkString(", ") + ")" } mkString("AttributeKey ID collisions detected for: ", ", ", ""))
sys.error(duplicates map { case (k, tps) => "'" + k + "' (" + tps.mkString(", ") + ")" } mkString("Some keys were defined with the same name but different types: ", ", ", ""))
}
private[this] type TriggerMap = collection.mutable.HashMap[Task[_], Seq[Task[_]]]
def triggers(ss: Settings[Scope]): Triggers[Task] =