diff --git a/src/server/api/routers/images.ts b/src/server/api/routers/images.ts index 2d50361..86caad2 100644 --- a/src/server/api/routers/images.ts +++ b/src/server/api/routers/images.ts @@ -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", @@ -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",