forked from rauchg/slackin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change case on the "already invited" message
- Loading branch information
1 parent
845d23e
commit 317cc02
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected].')); | ||
fn(new Error('You have already been invited to Slack. Check for an email from [email protected].')); | ||
} else if (providedError === 'already_in_team') { | ||
fn(new Error(`Sending you to Slack...`)); | ||
} else { | ||
|