Include additional info on broken links in linkcheck

This commit is contained in:
Alex Gaynor
2016-05-29 10:30:33 -07:00
parent e946e84832
commit 830e986b7a
+1 -1
View File
@@ -243,7 +243,7 @@ class CheckExternalLinksBuilder(Builder):
elif status == 'broken':
self.write_entry('broken', docname, lineno, uri + ': ' + info)
if self.app.quiet or self.app.warningiserror:
self.warn('broken link: %s' % uri,
self.warn('broken link: %s (%s)' % (uri, info),
'%s:%s' % (self.env.doc2path(docname), lineno))
else:
self.info(red('broken ') + uri + red(' - ' + info))