diff --git a/apps/meteor/app/livechat/server/methods/takeInquiry.ts b/apps/meteor/app/livechat/server/methods/takeInquiry.ts index 6b312557c351..ce6fdd4137a5 100644 --- a/apps/meteor/app/livechat/server/methods/takeInquiry.ts +++ b/apps/meteor/app/livechat/server/methods/takeInquiry.ts @@ -53,12 +53,12 @@ export const takeInquiry = async ( const room = await LivechatRooms.findOneById(inquiry.rid); if (!room || !(await Omnichannel.isWithinMACLimit(room))) { - throw new Error('error-mac-limit-reached'); + throw new Meteor.Error('error-mac-limit-reached'); } const contactId = await migrateVisitorIfMissingContact(inquiry.v._id, room.source); if (contactId && (await shouldTriggerVerificationApp(contactId, room.source))) { - throw new Error('error-unverified-contact'); + throw new Meteor.Error('error-unverified-contact'); } const agent = { diff --git a/packages/i18n/src/locales/en.i18n.json b/packages/i18n/src/locales/en.i18n.json index f30a89b45480..e482f17bbd2f 100644 --- a/packages/i18n/src/locales/en.i18n.json +++ b/packages/i18n/src/locales/en.i18n.json @@ -2183,6 +2183,7 @@ "error-max-number-simultaneous-chats-reached": "The maximum number of simultaneous chats per agent has been reached.", "error-max-rooms-per-guest-reached": "The maximum number of rooms per guest has been reached.", "error-mac-limit-reached": "The maximum number of monthly active contacts for this workspace has been reached.", + "error-unverified-contact": "The contact must be verified.", "error-message-deleting-blocked": "Message deleting is blocked", "error-message-editing-blocked": "Message editing is blocked", "error-message-size-exceeded": "Message size exceeds Message_MaxAllowedSize",