From 15afdbadc8b9110340c94c560459ce53fae404c9 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 19 Sep 2017 15:58:41 -0500 Subject: [PATCH] Update exception message to include directories Change-Id: Ifa0f907973b24422acd28e7a84a31919cff5acee --- zuul_sphinx/zuul.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): if os.path.exists(path): return path root = os.path.split(root)[0] - raise Exception("Unable to find zuul.yaml or .zuul.yaml") + raise Exception( + "Unable to find zuul config in zuul.yaml, .zuul.yaml," + " zuul.d or .zuul.d") def parse_zuul_yaml(self, path): with open(path) as f: