mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 05:25:56 +00:00
feat: add better error message
This commit is contained in:
@@ -94,7 +94,7 @@ export const LdapProvider = (): TDynamicProviderFns => {
|
|||||||
try {
|
try {
|
||||||
parsedEntries = ldif.parse(ldif_file).entries as any[];
|
parsedEntries = ldif.parse(ldif_file).entries as any[];
|
||||||
} catch (err) {
|
} 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[] = [];
|
const dnArray: string[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user