Skip to content

Commit 593bee6

Browse files
committed
Log stderr too
1 parent e0c821c commit 593bee6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/client/stdio.ts

+9
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ export class StdioClientTransport implements Transport {
158158
this._process.stdout?.on("error", (error) => {
159159
this.onerror?.(error);
160160
});
161+
162+
this._process.stderr?.on("data", (chunk) => {
163+
this._readBuffer.append(chunk);
164+
this.processReadBuffer();
165+
});
166+
167+
this._process.stderr?.on("error", (error) => {
168+
this.onerror?.(error);
169+
});
161170
});
162171
}
163172

0 commit comments

Comments
 (0)