Commit 31aaea53 authored by Jordan Zimmerman's avatar Jordan Zimmerman Committed by Christian Tzolov
Browse files

If a handler throws McpError, use its values for the RPC error

Handlers should be able to throw RPC errors and `McpError` is the
right exception for that.

Improve `DefaultMcpStatelessServerHandler` error handler to check if the
exception is `McpError` and, if so, use it to build the RPC error
result instead of re-writing as `INTERNAL_ERROR`.
parent d756be16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment