Alex / KATT 🐱
Need more control over error handling
we discovered that malformed URIs result in 500 errors (which in turn hit our error reporter).that sounds like a bug, open an issue 🙏
Ideally, we would be able to define the behavior of getTrpcErrorFromUnknown and implement logic that checks instanceof URIError and creates a BAD_REQUEST error rather than an INTERNAL_SERVER_ERROR.that might be a good fix!
6 replies