Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/api/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const handler = (req: Request) =>
router: appRouter,
createContext,
onError: ({ path, error }) => {
// Suppress NOT_FOUND only for the known-dead device.heartbeat path
// (removed in #4490). Old desktop clients gated behind UpdateRequiredPage
// still call it; all other NOT_FOUND errors should remain visible.
if (error.code === "NOT_FOUND" && path === "device.heartbeat") return;
console.error(`❌ tRPC error on ${path ?? "<no-path>"}:`, error);
},
});
Expand Down
Loading