Skip to content

Commit

Permalink
cast error
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Oct 6, 2023
1 parent dcff9b3 commit 7433c30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sns/lib/utils/snsSubscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7433c30

Please sign in to comment.