Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add more descriptive error on bad request

adilsonbdd741d6cc18
diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.ts
index c22454ead4..381b42f2ed 100644
--- a/backend/src/server/routes/v1/secret-sharing-router.ts
+++ b/backend/src/server/routes/v1/secret-sharing-router.ts
@@ -234,7 +234,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
handler: async (req) => {
const appCfg = getConfig();
if (appCfg.DISABLE_PUBLIC_SECRET_SHARING) {
- throw new BadRequestError({ message: "Public Secret sharing is disabled" });
+ throw new BadRequestError({ message: "Public secret sharing is disabled on this instance" });
}
const sharedSecret = await req.server.services.secretSharing.createPublicSharedSecret({