[gtk-doc] db2html: report linenumbers on issues



commit 7e56003b31ae7b3a4aaa4b21bfaed283814e41a6
Author: Stefan Sauer <ensonic users sf net>
Date:   Wed Feb 21 20:29:34 2018 +0100

    db2html: report linenumbers on issues

 tools/db2html.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/db2html.py b/tools/db2html.py
index 89666c0..2cb4b8f 100644
--- a/tools/db2html.py
+++ b/tools/db2html.py
@@ -260,8 +260,8 @@ def xml_get_title(xml):
     if title is not None:
         return title.text
     else:
-        # TODO(ensonic): need a better way to report a position in the tree
-        logging.warning('Expected title tag under %s', xml.tag)
+        # TODO(ensonic): any way to get the file (inlcudes) too?
+        logging.warning('%s: Expected title tag under %s', xml.sourceline, xml.tag)
         return ''
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]