Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: return only error message

=28ff9e3ab11c
diff --git a/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts b/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts
index 82cc463ba2..b3a3b3e60d 100644
--- a/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts
+++ b/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts
@@ -222,7 +222,7 @@ export const getHCVaultAccessToken = async (
return tokenResp.data.auth.client_token;
} catch (e: unknown) {
- logger.error(e, "Failed to validate connection");
+ logger.error(`Failed to validate connection: ${(e as Error)?.message || ""}`);
throw new BadRequestError({
message: "Unable to validate connection: verify credentials"
});