some error handleing for octokit api calls