Merge "throw an exception when sphinxext cannot find the config file"

This commit is contained in:
Jenkins 2017-07-31 19:11:12 +00:00 committed by Gerrit Code Review
commit 2c31069ba6

View File

@ -124,7 +124,9 @@ class ShowPolicyDirective(rst.Directive):
config_path = c
break
else:
self.error('could not find config file in: %s' % str(candidates))
raise ValueError(
'could not find config file in: %s' % str(candidates)
)
self.info('loading config file %s' % config_path)