Skip to content

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

chore: switch to bad request error

Meet5b5a8ff03fb8
diff --git a/backend/src/ee/services/dynamic-secret/providers/ldap.ts b/backend/src/ee/services/dynamic-secret/providers/ldap.ts
index 9d41a6d7f8..9fcfb125d9 100644
--- a/backend/src/ee/services/dynamic-secret/providers/ldap.ts
+++ b/backend/src/ee/services/dynamic-secret/providers/ldap.ts
@@ -152,7 +152,7 @@ export const LdapProvider = (): TDynamicProviderFns => {
});
} else {
client.unbind();
- throw new Error(`Unsupported operation type ${entry.type}`);
+ throw new BadRequestError({ message: `Unsupported operation type ${entry.type}` });
}
dnArray.push(response_dn);