From 40ff39a095dfe05bf8ab29914917f8feb68b43d8 Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Fri, 24 May 2024 22:10:38 +0200 Subject: [PATCH] chore: give more information on errors --- packages/api/src/routers/weather.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/api/src/routers/weather.ts b/packages/api/src/routers/weather.ts index 7cc73565..c3881883 100644 --- a/packages/api/src/routers/weather.ts +++ b/packages/api/src/routers/weather.ts @@ -267,8 +267,9 @@ export const weatherRouter = createTRPCRouter({ } catch (error) { if (error instanceof z.ZodError) { console.error(`Zod Errors in the ${errorMessage}`, { - error: error.issues, - result, + errorIssues: error.issues, + resultStatus: result.status, + resultValue: result.value, }); } else { console.error(`Else Error in the ${errorMessage}`, {