From cd14a86f840c978ea453696bb2a703f7f758b313 Mon Sep 17 00:00:00 2001 From: Andrew Waage Date: Wed, 18 May 2016 11:01:33 -0700 Subject: [PATCH] changed the rescued exceptions --- lib/github_changelog_generator/octo_fetcher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/github_changelog_generator/octo_fetcher.rb b/lib/github_changelog_generator/octo_fetcher.rb index 354da80..cbccd4a 100644 --- a/lib/github_changelog_generator/octo_fetcher.rb +++ b/lib/github_changelog_generator/octo_fetcher.rb @@ -240,10 +240,10 @@ Make sure, that you push tags to remote repo via 'git push --tags'".yellow def check_github_response begin value = yield - rescue Github::Error::Unauthorized => e + rescue Octokit::Unauthorized => e Helper.log.error e.body.red abort "Error: wrong GitHub token" - rescue Github::Error::Forbidden => e + rescue Octokit::Forbidden => e Helper.log.warn e.body.red Helper.log.warn GH_RATE_LIMIT_EXCEEDED_MSG.yellow end