From: Vladimír Vondruš Date: Sat, 7 Nov 2020 17:28:22 +0000 (+0100) Subject: documentation/doxygen: add a human-readable assert here. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=21b3b793d2cae0cb1433cb7cc7a80781633a06e9;p=blog.git documentation/doxygen: add a human-readable assert here. --- diff --git a/documentation/doxygen.py b/documentation/doxygen.py index 2276e412..d8b2df22 100755 --- a/documentation/doxygen.py +++ b/documentation/doxygen.py @@ -2334,6 +2334,7 @@ def postprocess_state(state: State): # Resolve navbar links that are just an ID def resolve_link(html, title, url, id): if not html and not title and not url: + assert id in state.compounds, "Navbar references {} which wasn't found".format(id) found = state.compounds[id] title, url = found.name, found.url return html, title, url, id