mirror of https://github.com/sbt/sbt.git
Better representation of no cross-version suffix in suffix conflict error message.
This commit is contained in:
parent
7de1b4bf3d
commit
57306e6257
|
|
@ -38,7 +38,7 @@ object ConflictWarning
|
||||||
val conflictMsgs =
|
val conflictMsgs =
|
||||||
for( ((org,rawName), fullNames) <- crossMismatches ) yield
|
for( ((org,rawName), fullNames) <- crossMismatches ) yield
|
||||||
{
|
{
|
||||||
val suffixes = fullNames.map(n => "_" + getCrossSuffix(n)).mkString(", ")
|
val suffixes = fullNames.map(getCrossSuffix).mkString(", ")
|
||||||
s"${idString(org,rawName)} $suffixes"
|
s"${idString(org,rawName)} $suffixes"
|
||||||
}
|
}
|
||||||
log.log(config.level, conflictMsgs.mkString(pre, "\n ", ""))
|
log.log(config.level, conflictMsgs.mkString(pre, "\n ", ""))
|
||||||
|
|
@ -73,8 +73,8 @@ object ConflictWarning
|
||||||
case _ => s
|
case _ => s
|
||||||
}
|
}
|
||||||
private[this] def getCrossSuffix(s: String): String = s match {
|
private[this] def getCrossSuffix(s: String): String = s match {
|
||||||
case CrossSuffixPattern(_, v) => v
|
case CrossSuffixPattern(_, v) => "_" + v
|
||||||
case _ => ""
|
case _ => "<none>"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue