Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Vague error message when creating integration and rocket.cat is deleted #7218

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

graywolf336
Copy link
Contributor

Currently when creating Zaps the rocket.cat user is required. This improves the error message which comes up inside of Zapier when someone has deleted this user in their instance but tries to get a Zap going.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-7218 June 10, 2017 03:36 Inactive
@@ -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' });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be i18n translated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of the other error messages are, so it wouldn't make sense to do it just this once.

@geekgonecrazy geekgonecrazy modified the milestone: 0.57.0 Jun 24, 2017
@rodrigok rodrigok added this to the 0.58.0 milestone Jun 30, 2017
@rodrigok rodrigok merged commit 90a4f35 into develop Jun 30, 2017
@rodrigok rodrigok deleted the improve-error-message-on-invalid-users branch June 30, 2017 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants