Fixed some issues regarding management of GitHub errors