Catch errors in pushGit