bug 486992: post_upload.py errors aren't caught - use sys.exit(non-zero) when exceptions are caught in upload.py. r=ted
authorBen Hearsum <bhearsum@mozilla.com>
Mon, 20 Apr 2009 12:42:58 -0400
changeset 27534 2068d22c075957dda591f1252f7ab503ca241e08
parent 27533 d161d5bc6a2821b42bcacc986d38d57d6672b7d4
child 27535 738052b475e20a2b319329689d270d95a311dd9e
push id6601
push userbhearsum@mozilla.com
push dateMon, 20 Apr 2009 16:46:11 +0000
treeherdermozilla-central@2068d22c0759 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs486992
milestone1.9.2a1pre
bug 486992: post_upload.py errors aren't caught - use sys.exit(non-zero) when exceptions are caught in upload.py. r=ted
build/upload.py
--- a/build/upload.py
+++ b/build/upload.py
@@ -219,10 +219,12 @@ if __name__ == '__main__':
         sys.exit(1)
     try:
         UploadFiles(user, host, path, args, base_path=options.base_path,
                     port=port, ssh_key=key, upload_to_temp_dir=upload_to_temp_dir,
                     post_upload_command=post_upload_command,
                     verbose=True)
     except IOError, (strerror):
         print strerror
+        sys.exit(1)
     except Exception, (err):
         print err
+        sys.exit(2)