Improved error handling in the github repository class.