From 513c5060c4b6642636ab45d87418dc9c8aae80ab Mon Sep 17 00:00:00 2001 From: Artem Zhmurov Date: Tue, 17 Mar 2020 22:04:00 +0100 Subject: [PATCH] Make some doxygen errors more clear Prints more clear error messages when doxygen fails to run on assertion. Change-Id: I476a97b494484d7b020a60d833d8e59405c970a2 --- docs/doxygen/doxygenxml.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/doxygen/doxygenxml.py b/docs/doxygen/doxygenxml.py index 067d84af32..2d72eee2fa 100755 --- a/docs/doxygen/doxygenxml.py +++ b/docs/doxygen/doxygenxml.py @@ -2,7 +2,7 @@ # # This file is part of the GROMACS molecular simulation package. # -# Copyright (c) 2014,2015,2016,2018,2019, by the GROMACS development team, led by +# Copyright (c) 2014,2015,2016,2018,2019,2020, by the GROMACS development team, led by # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, # and including many others, as listed in the AUTHORS file in the # top-level source directory and at http://www.gromacs.org. @@ -400,15 +400,15 @@ class Member(Entity): """Add a compound that contains this member.""" self._parents.add(compound) if isinstance(compound, Class): - assert self._class is None + assert self._class is None, 'Class \"{0}\" was already added. Maybe you have two entities with the same name.'.format(self._class) self._class = compound elif isinstance(compound, Namespace): - assert self._namespace is None + assert self._namespace is None, 'Namespace \"{0}\" was already added. Maybe you have two entities with the same name.'.format(self._namespace) self._namespace = compound elif isinstance(compound, File): self._files.add(compound) elif isinstance(compound, Group): - assert self._group is None + assert self._group is None, 'Group \"{0}\" was already added.'.format(self._group) self._group = compound else: assert False -- 2.11.4.GIT