Better error message on git check failure