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 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
} }