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

Unified Diff: apply_issue.py

Issue 10391033: Improve error message in patch application failure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 7 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 | checkout.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apply_issue.py
diff --git a/apply_issue.py b/apply_issue.py
index 5bf72197be69d2c99f44c63fd49d09656b6acfea..22d6945d651e258a6b0d4af35952d457eecf7294 100755
--- a/apply_issue.py
+++ b/apply_issue.py
@@ -69,7 +69,11 @@ def main():
parser.error('Couldn\'t determine the scm')
# Apply the patch.
- scm_obj.apply_patch(patchset)
+ try:
+ scm_obj.apply_patch(patchset)
+ except checkout.PatchApplicationFailed, e:
+ print >> sys.stderr, str(e)
+ return 1
return 0
« no previous file with comments | « no previous file | checkout.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698