I am bad at boolean logic. Fixed git error logging