Skip to content

Commit

Permalink
Merge pull request #7218 from RocketChat/improve-error-message-on-inv…
Browse files Browse the repository at this point in the history
…alid-users

[FIX] Vague error message when creating integration and rocket.cat is deleted
  • Loading branch information
rodrigok authored Jun 30, 2017
2 parents 62e513b + 63baef9 commit 90a4f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-integrations/server/lib/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ RocketChat.integrations.validateOutgoing = function _validateOutgoing(integratio
const user = RocketChat.models.Users.findOne({ username: integration.username });

if (!user) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', { function: 'validateOutgoing' });
throw new Meteor.Error('error-invalid-user', 'Invalid user (did you delete the `rocket.cat` user?)', { function: 'validateOutgoing' });
}

integration.type = 'webhook-outgoing';
Expand Down

0 comments on commit 90a4f35

Please sign in to comment.