Better error output when git commands fail.