From c25573d364d2d5d0c15de577c4fe3ccf459b0d72 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Tue, 25 Nov 2025 09:06:59 -0800 Subject: [PATCH] Throw error for listing --- .../dns-made-easy/dns-made-easy-connection-service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 d5da33c93..b50c9b73c 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"}` + }); } };