Skip to content

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

Merged
rodrigok merged 1 commit into
developfrom
improve-error-message-on-invalid-users
Jun 30, 2017
Merged

[FIX] Vague error message when creating integration and rocket.cat is deleted#7218
rodrigok merged 1 commit into
developfrom
improve-error-message-on-invalid-users

Conversation

@graywolf336
Copy link
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
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