diff --git a/add-to-org.rb b/add-to-org.rb index 371e003..2b1d830 100644 --- a/add-to-org.rb +++ b/add-to-org.rb @@ -112,4 +112,6 @@ def add_to_org(org, username) 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