Revision: 23664
Author:   [email protected]
Date:     Wed Sep  3 14:38:28 2014 UTC
Log:      Add more output when roll scripts are retrying.

[email protected]

Review URL: https://codereview.chromium.org/529343003
https://code.google.com/p/v8/source/detail?r=23664

Modified:
 /branches/bleeding_edge/tools/push-to-trunk/common_includes.py

=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/common_includes.py Wed Sep 3 08:29:53 2014 UTC +++ /branches/bleeding_edge/tools/push-to-trunk/common_includes.py Wed Sep 3 14:38:28 2014 UTC
@@ -318,13 +318,14 @@
       got_exception = False
       try:
         result = cb()
-      except NoRetryException, e:
+      except NoRetryException as e:
         raise e
-      except Exception:
-        got_exception = True
+      except Exception as e:
+        got_exception = e
       if got_exception or retry_on(result):
         if not wait_plan:  # pragma: no cover
-          raise Exception("Retried too often. Giving up.")
+          raise Exception("Retried too often. Giving up. Reason: %s" %
+                          str(got_exception))
         wait_time = wait_plan.pop()
         print "Waiting for %f seconds." % wait_time
         self._side_effect_handler.Sleep(wait_time)

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to