Skip to content

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

Throw error for listing

Fang-Pen Linc25573d364d2
diff --git a/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-service.ts b/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-service.ts
index d5da33c930..b50c9b73c8 100644
--- a/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-service.ts
+++ b/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-service.ts
@@ -1,3 +1,4 @@
+import { BadRequestError } from "@app/lib/errors";
import { logger } from "@app/lib/logger";
import { OrgServiceActor } from "@app/lib/types";
@@ -22,7 +23,9 @@ export const dnsMadeEasyConnectionService = (getAppConnection: TGetAppConnection
error,
`Failed to list DNS Made Easy zones for DNS Made Easy connection [connectionId=${connectionId}]`
);
- return [];
+ throw new BadRequestError({
+ message: `Failed to list DNS Made Easy zones: ${error instanceof Error ? error.message : "Unknown error"}`
+ });
}
};