From 825748d25742b361372fb492336be05b37fd333e Mon Sep 17 00:00:00 2001 From: Adam Hunter Date: Mon, 26 Jul 2021 14:34:32 -0400 Subject: [PATCH] Adds error logging for getDomainName API fail --- src/aws/api-gateway-wrapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aws/api-gateway-wrapper.ts b/src/aws/api-gateway-wrapper.ts index 813e172c..45269708 100644 --- a/src/aws/api-gateway-wrapper.ts +++ b/src/aws/api-gateway-wrapper.ts @@ -91,7 +91,7 @@ class APIGatewayWrapper { } /** - * Delete Custom Domain Name through API Gateway + * Get Custom Domain Info through API Gateway */ public async getCustomDomainInfo(domain: DomainConfig): Promise { // Make API call @@ -102,6 +102,7 @@ class APIGatewayWrapper { return new DomainInfo(domainInfo); } catch (err) { if (err.code !== "NotFoundException") { + Globals.logError(err, domain.givenDomainName); throw new Error(`Unable to fetch information about ${domain.givenDomainName}`); } Globals.logError(`${domain.givenDomainName} does not exist`);