mirror of https://github.com/sbt/sbt.git
in cyclic error message, put each node string on different line
This commit is contained in:
parent
943bfc4bf7
commit
a524d48008
|
|
@ -55,7 +55,9 @@ object Dag
|
||||||
finished;
|
finished;
|
||||||
}
|
}
|
||||||
final class Cyclic(val value: Any, val all: List[Any], val complete: Boolean)
|
final class Cyclic(val value: Any, val all: List[Any], val complete: Boolean)
|
||||||
extends Exception( "Cyclic reference involving " + (if(complete) all.mkString(", ") else value) )
|
extends Exception( "Cyclic reference involving " +
|
||||||
|
(if(complete) all.mkString("\n ", "\n ", "") else value)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
def this(value: Any) = this(value, value :: Nil, false)
|
def this(value: Any) = this(value, value :: Nil, false)
|
||||||
def ::(a: Any): Cyclic =
|
def ::(a: Any): Cyclic =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue