refs #17: show errors in graph output as well

This commit is contained in:
Johannes Rudolph 2012-10-22 10:07:37 +02:00
parent 83ac2e62ab
commit 9d1087347e
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ object IvyGraphMLDependencies extends App {
private def buildAsciiGraph(moduleGraph: ModuleGraph): layout.Graph[String] = {
def renderVertex(module: Module): String =
module.name + "\n" + module.organisation + "\n" + module.version
module.name + "\n" + module.organisation + "\n" + module.version + module.error.map("\nerror: "+_).getOrElse("")
val vertices = moduleGraph.nodes.map(renderVertex).toList
val edges = moduleGraph.edges.toList.map { case (from, to) (renderVertex(from), renderVertex(to)) }