The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/federation/server/functions/errors.js

13 lines
658 B

import { Meteor } from 'meteor/meteor';
export const disabled = (method) =>
new Meteor.Error('federation-error-disabled', 'Federation disabled', { method });
export const userNotFound = (query) =>
new Meteor.Error('federation-user-not-found', `Could not find federated users using "${ query }"`);
export const peerNotFoundUsingDNS = (method) =>
new Meteor.Error('federation-error-peer-no-found-using-dns', 'Could not find the peer using DNS or Hub', { method });
export const peerCouldNotBeRegisteredWithHub = (method) =>
new Meteor.Error('federation-error-peer-could-not-register-with-hub', 'Could not register the peer using the Hub', { method });