From d7cefd73a08c5e72c7c250a719a0c8cbb87368a9 Mon Sep 17 00:00:00 2001 From: Mike Bifulco Date: Fri, 27 Sep 2024 08:29:22 -0400 Subject: [PATCH] chore: lint --- src/server/routers/mailingList.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/routers/mailingList.ts b/src/server/routers/mailingList.ts index 7ea815de..1ea7414e 100644 --- a/src/server/routers/mailingList.ts +++ b/src/server/routers/mailingList.ts @@ -19,8 +19,8 @@ export const mailingListRouter = router({ lastName, }); return res; - } catch (_error) { - throw new TRPCError({message: 'Error subscribing', code: "BAD_REQUEST"}); + } catch (e) { + throw new TRPCError({message: 'Error subscribing', code: "BAD_REQUEST", cause: (e as Error).message || undefined}); } }), });