X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Fcommunication.js;h=feda5887146c6b70ae242e1daf52ab3fbbe10a44;hb=43898cdd317a127bc45e8b3cb2f160df386760a1;hp=3b436786fabf3ebfddfb245b479da669894f8377;hpb=71efac9dcd7dc219cb83799391e7adc63cd4c662;p=websub-hub diff --git a/src/communication.js b/src/communication.js index 3b43678..feda588 100644 --- a/src/communication.js +++ b/src/communication.js @@ -220,8 +220,8 @@ class Communication { const topic = await this.db.topicGetById(dbCtx, verification.topicId); if (!topic) { - this.logger.error(_scope, 'no such topic id', { verification, requestId }); - throw new Errors.InternalInconsistencyError('no such topic id'); + this.logger.error(_scope, Enum.Message.NoSuchTopicId, { verification, requestId }); + throw new Errors.InternalInconsistencyError(Enum.Message.NoSuchTopicId); } if (!topic.isActive) { @@ -438,8 +438,8 @@ class Communication { const topic = await this.db.topicGetById(dbCtx, topicId); if (topic === undefined) { - this.logger.error(_scope, 'no such topic id', logInfoData); - throw new Errors.InternalInconsistencyError('no such topic id'); + this.logger.error(_scope, Enum.Message.NoSuchTopicId, logInfoData); + throw new Errors.InternalInconsistencyError(Enum.Message.NoSuchTopicId); } // Cull any expired subscriptions