chore: switch to bad request error

This commit is contained in:
Meet
2024-10-02 21:20:42 +05:30
parent e0199084ad
commit 5b5a8ff03f
@@ -152,7 +152,7 @@ export const LdapProvider = (): TDynamicProviderFns => {
}); });
} else { } else {
client.unbind(); client.unbind();
throw new Error(`Unsupported operation type ${entry.type}`); throw new BadRequestError({ message: `Unsupported operation type ${entry.type}` });
} }
dnArray.push(response_dn); dnArray.push(response_dn);