Skip to content

Commit

Permalink
Shorten already-invited message
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Jan 26, 2016
1 parent b91a58d commit 2dcd2fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function slackin({

invite({ token, org, email, channel: chanId }, err => {
if (err) {
if (err.message === `Already invited. Sending you to https://${org}.slack.com...`) {
if (err.message === `Sending you to Slack...`) {
return res
.status(303)
.json({ msg: err.message, redirectUrl: `https://${org}.slack.com` });
Expand Down
2 changes: 1 addition & 1 deletion lib/slack-invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function invite({ org, token, email, channel }, fn){
} else if (providedError === 'already_invited') {
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(`Already invited. Sending you to https://${org}.slack.com...`));
fn(new Error(`Sending you to Slack...`));
} else {
fn(new Error(providedError));
}
Expand Down

0 comments on commit 2dcd2fb

Please sign in to comment.