git error handling added, still not working