Merge "throw an exception when sphinxext cannot find the config file"
This commit is contained in:
commit
2c31069ba6
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user