Skip to content

Commit

Permalink
Update error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Mar 30, 2024
1 parent a504369 commit 90eb1c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/api/routers/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const imagesRouter = createTRPCRouter({
const message =
isDev && err instanceof Error
? err.message
: err?.toString() ?? "Something went wrong";
: "Something went wrong";

throw new TRPCError({
code: "INTERNAL_SERVER_ERROR",
Expand Down Expand Up @@ -223,7 +223,7 @@ export const imagesRouter = createTRPCRouter({
const message =
isDev && err instanceof Error
? err.message
: err?.toString() ?? "Something went wrong";
: "Something went wrong";

throw new TRPCError({
code: "INTERNAL_SERVER_ERROR",
Expand Down

0 comments on commit 90eb1c5

Please sign in to comment.