]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix error messages
authorTrevor Daniels <t.daniels@treda.co.uk>
Thu, 6 Jan 2011 22:56:03 +0000 (22:56 +0000)
committerTrevor Daniels <t.daniels@treda.co.uk>
Thu, 6 Jan 2011 22:56:03 +0000 (22:56 +0000)
scripts/auxiliar/ref_check.py

index 4b4e51f0bb59e8ee86c3a8908dee8761fe2a58e9..ec6f6b622f40ffee3886474e03adb0609e7cd46c 100755 (executable)
@@ -47,7 +47,7 @@ class CrossRefs:
     global returnCode
 #    print "Node: ", nodeName, " in ", manualName, " found in ", fileName
     if manualName+"/"+nodeName in self.Nodes.keys():
-      print "Error: Duplicate nodename ",nodeName, " in ", fileName, " and ", self.Nodes[manualName+nodeName]
+      print "Error: Duplicate nodename ",nodeName, " in ", fileName, " and ", self.Nodes[manualName+"/"+nodeName][1]
       returnCode=1
     self.Nodes[manualName + "/" + nodeName] = [manualName, fileName]
     self.nodeNames[nodeName] = fileName
@@ -158,7 +158,7 @@ class File:
             if refStart >= 0:
               refFound = True
               if actualToManualName == File.CurrentManualName:
-                print "Warning: xref should be internal around line ", lineNo, " in ", self.fileName
+                print "Warning: should xref be internal around line ", lineNo, " in ", self.fileName, "?"
               twoLines = twoLines[refStart:]
               refNodeStart = twoLines.find("{") + 1
               # TODO Need to check here for nested {}