From 2d6c2841a934a87e37a4fd11443ba5d04a39f635 Mon Sep 17 00:00:00 2001 From: Daniel Freytag Date: Fri, 22 Nov 2024 09:05:01 +0100 Subject: [PATCH] fix: Error type --- logger/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/logger.ts b/logger/logger.ts index 76a72bf..b19893d 100644 --- a/logger/logger.ts +++ b/logger/logger.ts @@ -11,7 +11,7 @@ const hostName = os.hostname() const convertError = format((event) => { if (event?.error instanceof Error) { event.error = { - code: event.error.code, + ...event.error, message: event.error.message, stack: event.error.stack, }