From: Kefu Chai Date: Thu, 5 Aug 2021 08:20:53 +0000 (+0800) Subject: doc/_ext: print out the module which fails the build X-Git-Tag: v17.1.0~1187^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42669%2Fhead;p=ceph.git doc/_ext: print out the module which fails the build Signed-off-by: Kefu Chai --- diff --git a/doc/_ext/ceph_confval.py b/doc/_ext/ceph_confval.py index 25a3f8bc7b23..cde538b45c9a 100644 --- a/doc/_ext/ceph_confval.py +++ b/doc/_ext/ceph_confval.py @@ -355,7 +355,11 @@ class CephOption(ObjectDescription): def _render_option(self, name) -> str: cur_module = self._current_module() if cur_module: - opt = self._load_module(cur_module).get(name) + try: + opt = self._load_module(cur_module).get(name) + except Exception as e: + message = f'Unable to load module "{cur_module}": {e}' + raise self.error(message) else: opt = self._load_yaml().get(name) if opt is None: