sometimes your token is no longer valid, catch it

This commit is contained in:
Brent Beer 2017-08-08 19:49:10 +02:00
Родитель c2a54b2f50
Коммит 033b4e2693
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -112,4 +112,6 @@ begin
end
rescue Octokit::Forbidden
abort "[403] - Unable to add member to organization. Check that the GITHUBTEACHER_TOKEN was created with administrative privilages so that you can add members to the organization"
rescue Octokit::Unauthorized
abort "[401] - The credentials you've supplied are no longer valid. Please generate a new token."
end