Browse Source

Fix exception handling that we broke when adding pretty logging.

Rob Austein 7 years ago
parent
commit
09e67fb2d3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      zc

+ 2 - 1
zc

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