feat: add better error message

This commit is contained in:
Meet
2024-10-03 16:44:57 +05:30
parent 97e860cf21
commit 73a9cf01f3

View File

@@ -94,7 +94,7 @@ export const LdapProvider = (): TDynamicProviderFns => {
try {
parsedEntries = ldif.parse(ldif_file).entries as any[];
} catch (err) {
throw new BadRequestError({ message: "Invalid LDIF, Please check LDIF entries section in the documentation." });
throw new BadRequestError({ message: "Invalid LDIF format, refer to the documentation at Dynamic secrets > LDAP > LDIF Entries." });
}
const dnArray: string[] = [];