瀏覽代碼

Fix exception handling that we broke when adding pretty logging.

Rob Austein 7 年之前
父節點
當前提交
09e67fb2d3
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      zc

+ 2 - 1
zc

@@ -549,6 +549,7 @@ def pre_receive_main():
 
     except Exception as e:
         logger.error("%s", e)
+        sys.exit(1)
 
 def post_receive_main():
     """
@@ -567,7 +568,7 @@ def post_receive_main():
                 f.write(gv.commit + "\n")
     except Exception as e:
         logger.error("%s", e)
-
+        sys.exit(1)
 
 def main():
     """