From 7433c3014ee0cdb4ca58604517bde4016238cfc8 Mon Sep 17 00:00:00 2001 From: Igor Savin Date: Fri, 6 Oct 2023 14:43:12 +0300 Subject: [PATCH] cast error --- packages/sns/lib/utils/snsSubscriber.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/sns/lib/utils/snsSubscriber.ts b/packages/sns/lib/utils/snsSubscriber.ts index 72ade47b..6f07f347 100644 --- a/packages/sns/lib/utils/snsSubscriber.ts +++ b/packages/sns/lib/utils/snsSubscriber.ts @@ -50,7 +50,9 @@ export async function subscribeToTopic( const logger = extraParams?.logger ?? console // @ts-ignore logger.error( - `Error while creating subscription for queue "${queueConfiguration.QueueName}", topic "${topicConfiguration.Name}": ${err.message}`, + `Error while creating subscription for queue "${queueConfiguration.QueueName}", topic "${ + topicConfiguration.Name + }": ${(err as Error).message}`, ) throw err }