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 |