mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
fix: Sentry for handled errors in MCP (#12130)
* fix: Sentry for handled errors in MCP * refactor: Pass error object to Logger.warn in MCP transport handler
This commit is contained in:
@@ -86,8 +86,11 @@ router.post(
|
||||
sessionIdGenerator: undefined,
|
||||
});
|
||||
|
||||
// onerror fires for client-side 4xx conditions (bad Accept header, etc)
|
||||
// which the transport already answers with an HTTP error — warn keeps
|
||||
// visibility without reporting client mistakes to Sentry.
|
||||
transport.onerror = (error) => {
|
||||
Logger.error("MCP transport error", error);
|
||||
Logger.warn("MCP transport error", error);
|
||||
};
|
||||
|
||||
await server.connect(transport);
|
||||
|
||||
Reference in New Issue
Block a user