chore: switch to bad request error

This commit is contained in:
Meet
2024-10-02 21:20:42 +05:30
parent e0199084ad
commit 5b5a8ff03f

View File

@@ -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);