misc: addressed comments

This commit is contained in:
Sheen Capadngan
2025-08-08 04:49:23 +08:00
parent 569edd2852
commit b95c35620a
@@ -141,7 +141,7 @@ export const ldapConfigServiceFactory = ({
if (!isConnected) { if (!isConnected) {
throw new BadRequestError({ throw new BadRequestError({
message: "Failed to create LDAP configuration due to invalid credentials." message: "Failed to establish connection to LDAP directory. Please verify that your credentials are correct."
}); });
} }
@@ -269,7 +269,8 @@ export const ldapConfigServiceFactory = ({
const isConnected = await testLDAPConfig(decryptedLdapCfg); const isConnected = await testLDAPConfig(decryptedLdapCfg);
if (!isConnected) { if (!isConnected) {
throw new BadRequestError({ throw new BadRequestError({
message: "Failed to update LDAP configuration due to invalid credentials." message:
"Failed to establish connection to LDAP directory. Please verify that your credentials are correct."
}); });
} }
} }