Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index 9e1124c65ea55ec417a941828398c50da7cddfc6..5cf2580e4c785ad74346191087a2c9dee2a3980d 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -842,7 +842,10 @@ def UserEditedLog(starting_text): |
# Msysgit requires the usage of 'env' to be present. |
cmd = 'env ' + cmd |
# shell=True to allow the shell to handle all forms of quotes in $EDITOR. |
- subprocess.check_call(cmd, shell=True) |
+ try: |
+ subprocess.check_call(cmd, shell=True) |
+ except subprocess.CalledProcessError, e: |
+ DieWithError('Editor returned %d' % e.returncode) |
fileobj = open(filename) |
text = fileobj.read() |
fileobj.close() |