more informative error message;
authorwenzelm
Mon, 06 Jan 2014 19:59:43 +0100
changeset 54939 b411e99d1581
parent 54938 8cccfb8f1d36
child 54940 a20b105bb5d1
more informative error message;
src/Pure/Tools/build.scala
--- a/src/Pure/Tools/build.scala	Mon Jan 06 19:47:11 2014 +0100
+++ b/src/Pure/Tools/build.scala	Mon Jan 06 19:59:43 2014 +0100
@@ -117,7 +117,8 @@
         (Graph.string[Session_Info] /: infos) {
           case (graph, (name, info)) =>
             if (graph.defined(name))
-              error("Duplicate session " + quote(name) + Position.here(info.pos))
+              error("Duplicate session " + quote(name) + Position.here(info.pos) +
+                Position.here(graph.get_node(name).pos))
             else graph.new_node(name, info)
         }
       val graph2 =