Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: move trpc error logging inside the dev check

Mohamed Bassem0b65e5a4286f
diff --git a/packages/api/routes/trpc.ts b/packages/api/routes/trpc.ts
index 3d83f64a..fd3ed312 100644
--- a/packages/api/routes/trpc.ts
+++ b/packages/api/routes/trpc.ts
@@ -19,8 +19,8 @@ const trpc = new Hono<{
onError: ({ path, error }) => {
if (process.env.NODE_ENV === "development") {
console.error(`❌ tRPC failed on ${path}`);
+ console.error(error);
}
- console.error(error);
},
}),
);