better error message when nothing running in task engine

This commit is contained in:
Mark Harrah 2011-06-10 07:48:54 -04:00
parent a62bf744c1
commit 75ad56d2bf
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ final class Execute[A[_] <: AnyRef](checkCycles: Boolean, triggers: Triggers[A])
assert( !reverse.isEmpty, "Nothing to process." )
if( !state.values.exists( _ == Running ) ) {
snapshotCycleCheck()
assert(false, "Nothing running.")
assert(false, "Internal task engine error: nothing running. This usually indicates a cycle in tasks.\n Dumping state:\n" + state.mkString("\n\t"))
}
}