Fail with non-zero exit code when toc category missing

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3610401e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3610401e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3610401e

Branch: refs/heads/vpc
Commit: 3610401edcbaca7718688c9aa068a17eea9d63da
Parents: 911261a
Author: Prasanna Santhanam <[email protected]>
Authored: Tue Jul 31 17:20:45 2012 +0530
Committer: Prasanna Santhanam <[email protected]>
Committed: Tue Jul 31 17:23:41 2012 +0530

----------------------------------------------------------------------
 setup/apidoc/gen_toc.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3610401e/setup/apidoc/gen_toc.py
----------------------------------------------------------------------
diff --git a/setup/apidoc/gen_toc.py b/setup/apidoc/gen_toc.py
index f7a34eb..9c84e1e 100644
--- a/setup/apidoc/gen_toc.py
+++ b/setup/apidoc/gen_toc.py
@@ -132,6 +132,7 @@ def choose_category(fn):
             return v
     raise Exception('Need to add a category for %s to %s:known_categories' %
                     (fn, __file__))
+    sys.exit(1)
 
 
 for f in sys.argv:

Reply via email to