From 63baef9dd92865b0f05df770b022551d02dbd0c9 Mon Sep 17 00:00:00 2001 From: Bradley Hilton Date: Fri, 9 Jun 2017 22:34:10 -0500 Subject: [PATCH] Improve the error message for when the username provided isn't valid user when creating an integration --- packages/rocketchat-integrations/server/lib/validation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rocketchat-integrations/server/lib/validation.js b/packages/rocketchat-integrations/server/lib/validation.js index d25a42c45e18..a8947bdb6019 100644 --- a/packages/rocketchat-integrations/server/lib/validation.js +++ b/packages/rocketchat-integrations/server/lib/validation.js @@ -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';