Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: trychange.py

Issue 3853003: Handle gclient_utils.Error exceptions in trychange.py (Closed)
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
diff --git a/trychange.py b/trychange.py
index bdfc02e72782630095a80835963409388d6bb0dd..0828aeb940b9526d0f7e85cfc2ccf55b746d2fd0 100755
--- a/trychange.py
+++ b/trychange.py
@@ -746,7 +746,10 @@ def TryChange(argv,
except (InvalidScript, NoTryServerAccess), e:
if swallow_exception:
return 1
- print e
+ print >> sys.stderr, e
+ return 1
+ except gclient_utils.Error, e:
+ print >> sys.stderr, e
return 1
return 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698