Fix error handling when git_editor fails

Signed-off-by: John Keeping <john@keeping.me.uk>