From e695541bc6d1adf66a313ed22c2a475fd4e38a73 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Tue, 12 Oct 2010 11:07:28 -0700 Subject: [PATCH] Hide errors until builder succeeds. Change-Id: Ifb40e4931c1b0a1d32051d1d4851bca572ef3acf BUG=7649 TEST=Ran it with fake urls Review URL: http://codereview.chromium.org/3678004 --- bin/ctest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/ctest.py b/bin/ctest.py index 418dfaba78..2e12293cbc 100755 --- a/bin/ctest.py +++ b/bin/ctest.py @@ -10,6 +10,7 @@ import fileinput import optparse import os import sys +import traceback import urllib sys.path.append(os.path.join(os.path.dirname(__file__), '../lib')) @@ -212,4 +213,9 @@ def main(): if __name__ == '__main__': - main() + try: + main() + except Exception: + print "Got exception." + traceback.print_exc(file=sys.stdout) +