Improve GitHub error handling