Skip to content

Commit

Permalink
Merge pull request rauchg#168 from mcmahoniel/master
Browse files Browse the repository at this point in the history
Change case on the "already invited" message
  • Loading branch information
rauchg committed Mar 22, 2016
2 parents 3f83e63 + 317cc02 commit 32857c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slack-invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function invite({ org, token, email, channel }, fn){
if (providedError === 'missing_scope' && needed === 'admin') {
fn(new Error(`Missing admin scope: The token you provided is for an account that is not an admin. You must provide a token from an admin account in order to invite users through the Slack API.`));
} else if (providedError === 'already_invited') {
fn(new Error('You have already been invited to slack. Check for an email from feedback@slack.com.'));
fn(new Error('You have already been invited to Slack. Check for an email from feedback@slack.com.'));
} else if (providedError === 'already_in_team') {
fn(new Error(`Sending you to Slack...`));
} else {
Expand Down

0 comments on commit 32857c4

Please sign in to comment.