Cleaning up exception handling; display a better error when a git command has failed.