Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbifulco committed Sep 27, 2024
1 parent da0b919 commit d7cefd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/routers/mailingList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
}),
});

0 comments on commit d7cefd7

Please sign in to comment.