Browse Source

Update exception message to include directories

Change-Id: Ifa0f907973b24422acd28e7a84a31919cff5acee
Monty Taylor 1 year ago
parent
commit
15afdbadc8
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      zuul_sphinx/zuul.py

+ 3
- 1
zuul_sphinx/zuul.py View File

@@ -40,7 +40,9 @@ class ZuulDirective(Directive):
40 40
                 if os.path.exists(path):
41 41
                     return path
42 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 47
     def parse_zuul_yaml(self, path):
46 48
         with open(path) as f:

Loading…
Cancel
Save