shilohjt
TTCTheo's Typesafe Cult
•Created by jack on 10/25/2023 in #questions
trpc/app-router surfacing trpc errors in `error.tsx`?
The errorCode variable in your client-side code is being populated by calling getHTTPStatusCodeFromError(error). Make sure that this function returns the correct mapping from the thrown error to its HTTP status code.
5 replies