use Incomplete.show for displaying task failures

This commit is contained in:
Mark Harrah 2010-09-12 22:43:42 -04:00
parent 179634a019
commit fce5330464
1 changed files with 3 additions and 3 deletions

View File

@ -303,9 +303,9 @@ object Commands
result match
{
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)
println("Task did not complete successfully (TODO: error logging)")
directCause.foreach(_.printStackTrace)
case Inc(inc) =>
println(Incomplete.show(inc, true))
println("Task did not complete successfully")
original
}