Handle errors from git commit better.