diff --git a/src/client/streamableHttp.ts b/src/client/streamableHttp.ts index 12714ea44..88e6b2321 100644 --- a/src/client/streamableHttp.ts +++ b/src/client/streamableHttp.ts @@ -233,8 +233,7 @@ export class StreamableHTTPClientTransport implements Transport { this._handleSseStream(response.body, options, true); } catch (error) { - this.onerror?.(error as Error); - throw error; + throw error as Error; } }