diff --git a/backend/src/ee/services/dynamic-secret/providers/ldap.ts b/backend/src/ee/services/dynamic-secret/providers/ldap.ts index 9d41a6d7f..9fcfb125d 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);