Make doxygen assertion more helpful