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

Unified Diff: presubmit_canned_checks.py

Issue 9264044: Make the CheckTreeIsOpen presubmit check fail on IOError. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 8 years, 11 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: presubmit_canned_checks.py
===================================================================
--- presubmit_canned_checks.py (revision 119723)
+++ presubmit_canned_checks.py (working copy)
@@ -458,8 +458,10 @@
long_text = status + '\n' + url
return [output_api.PresubmitError('The tree is closed.',
long_text=long_text)]
- except IOError:
- pass
+ except IOError as e:
+ short_text = 'Error fetching tree status.'
+ long_text = str(e)
+ return [output_api.PresubmitError(short_text, long_text=long_text)]
M-A Ruel 2012/01/30 20:50:15 I don't see much value in the 2 named variables. J
rohitrao (ping after 24h) 2012/01/30 20:58:54 Done.
return []
« 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