X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fcommunication.js;fp=src%2Fcommunication.js;h=feda5887146c6b70ae242e1daf52ab3fbbe10a44;hp=3b436786fabf3ebfddfb245b479da669894f8377;hb=41ae00113d39abada54823b7133c473b8fb758f5;hpb=acf63f7913320f8edb9db9dc31d13ec7ff5d104f 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