compact incomplete task error message

This commit is contained in:
Mark Harrah 2011-05-07 22:02:06 -04:00
parent 54c84e35c3
commit e653517c8d
1 changed files with 1 additions and 2 deletions

View File

@ -46,12 +46,11 @@ object EvaluateTask
val un = all.filter { i => i.node.isEmpty || i.message.isEmpty }
for( (key, _, Some(ex)) <- keyed)
getStreams(key, streams).log.trace(ex)
log.error("Incomplete task(s):")
log.error("Incomplete tasks (run 'last <task>' for the full log):")
for( (key, msg, ex) <- keyed if(msg.isDefined || ex.isDefined) )
getStreams(key, streams).log.error(" " + Project.display(key) + ": " + (msg.toList ++ ex.toList).mkString("\n\t"))
for(u <- un)
log.debug(u.toString)
log.error("Run 'last <task>' for the full log(s).")
}
def getStreams(key: ScopedKey[_], streams: Streams): TaskStreams =
streams(ScopedKey(Project.fillTaskAxis(key).scope, Keys.streams.key))