From 35e6c8a24cb78bae1107e26785fd5d0cc7d42acb Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Sat, 9 Nov 2024 10:44:00 +0100 Subject: [PATCH] Sentry: remove custom error to prevent sentry flood --- core/api/instance/instance.model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api/instance/instance.model.js b/core/api/instance/instance.model.js index ad1cbd2..3a57663 100644 --- a/core/api/instance/instance.model.js +++ b/core/api/instance/instance.model.js @@ -124,7 +124,7 @@ module.exports = function InstanceModel(logger, db, redisClient, jwtService, fin // the instance doesn't exist or has been deleted if (instanceInDb === null) { - throw new ForbiddenError(`Instance ${instance.id} doesn't exist or has been deleted.`); + throw new ForbiddenError(); } const accessToken = jwtService.generateAccessTokenInstance(instanceInDb);