summaryrefslogtreecommitdiffstats
path: root/bin/SConsDoc.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2021-07-08 03:42:24 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2021-07-08 03:42:24 (GMT)
commitf359308f045555963d59e08a4901ace7e07833c5 (patch)
treebeba245ff7ae81c7a9aef695959fe23b1ed2e6ce /bin/SConsDoc.py
parent2889a57a42038445ed7ca4f4e89edfb788c4ba91 (diff)
downloadSCons-f359308f045555963d59e08a4901ace7e07833c5.zip
SCons-f359308f045555963d59e08a4901ace7e07833c5.tar.gz
SCons-f359308f045555963d59e08a4901ace7e07833c5.tar.bz2
Updates to docs to indicate experimental status
Diffstat (limited to 'bin/SConsDoc.py')
-rw-r--r--bin/SConsDoc.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/SConsDoc.py b/bin/SConsDoc.py
index baffbdc..f369642 100644
--- a/bin/SConsDoc.py
+++ b/bin/SConsDoc.py
@@ -364,9 +364,18 @@ class TreeFactory:
doc.xinclude()
try:
TreeFactory.xmlschema.assertValid(doc)
+ except etree.XMLSchemaValidateError as e:
+ print("ERROR: %s fails to validate:" % fpath)
+ print(e)
+ print(e.error_log.last_error.message)
+ print("In file: [%s]"%e.error_log.last_error.filename)
+ print("Line : %d"%e.error_log.last_error.line)
+ return False
+
except Exception as e:
print("ERROR: %s fails to validate:" % fpath)
print(e)
+
return False
return True