summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2017-09-19 15:58:41 -0500
committerMonty Taylor <mordred@inaugust.com>2017-09-19 15:58:41 -0500
commit15afdbadc8b9110340c94c560459ce53fae404c9 (patch)
treedd3d6917debe60709bd19328c2f9129341dcd90a
parent645c3d684d17f47c86f32217e406b0db003e6587 (diff)
Update exception message to include directories
Notes
Notes (review): Code-Review+1: David Moreau Simard <dms@redhat.com> Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: James E. Blair <corvus@inaugust.com> Workflow+1: James E. Blair <corvus@inaugust.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 04 Oct 2017 22:42:40 +0000 Reviewed-on: https://review.openstack.org/505400 Project: openstack-infra/zuul-sphinx Branch: refs/heads/master
-rw-r--r--zuul_sphinx/zuul.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/zuul_sphinx/zuul.py b/zuul_sphinx/zuul.py
index d524788..f7896a5 100644
--- a/zuul_sphinx/zuul.py
+++ b/zuul_sphinx/zuul.py
@@ -40,7 +40,9 @@ class ZuulDirective(Directive):
40 if os.path.exists(path): 40 if os.path.exists(path):
41 return path 41 return path
42 root = os.path.split(root)[0] 42 root = os.path.split(root)[0]
43 raise Exception("Unable to find zuul.yaml or .zuul.yaml") 43 raise Exception(
44 "Unable to find zuul config in zuul.yaml, .zuul.yaml,"
45 " zuul.d or .zuul.d")
44 46
45 def parse_zuul_yaml(self, path): 47 def parse_zuul_yaml(self, path):
46 with open(path) as f: 48 with open(path) as f: