mirror of https://github.com/sbt/sbt.git
use Incomplete.show for displaying task failures
This commit is contained in:
parent
179634a019
commit
fce5330464
|
|
@ -303,9 +303,9 @@ object Commands
|
||||||
result match
|
result match
|
||||||
{
|
{
|
||||||
case Value(v) => v
|
case Value(v) => v
|
||||||
case Inc(Incomplete(tpe, message, causes, directCause)) => // tpe: IValue = Error, message: Option[String] = None, causes: Seq[Incomplete] = Nil, directCause: Option[Throwable] = None)
|
case Inc(inc) =>
|
||||||
println("Task did not complete successfully (TODO: error logging)")
|
println(Incomplete.show(inc, true))
|
||||||
directCause.foreach(_.printStackTrace)
|
println("Task did not complete successfully")
|
||||||
original
|
original
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue