Pārlūkot izejas kodu

Fix exception handling that we broke when adding pretty logging.

Rob Austein 7 gadi atpakaļ
vecāks
revīzija
09e67fb2d3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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():
     """