Ooijaz2mo ago

Preventing uncaught error propagation from server to client

Hello guys, is there any way to create default error handler? I want to avoid leaking internal information to the client. Example scenario: My database is down. Exception has been thrown by the database driver. Result: TRPCClientError in a browser: connect ECONNREFUSED Desired result: TRPCClientError in a browser: "Internal server error"
0 Replies
No replies yetBe the first to reply to this messageJoin