MCPcopy Index your code
hub / github.com/coder/mux / onError

Function onError

src/node/runtime/RemoteRuntime.ts:283–286  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

281
282 await new Promise<void>((resolve, reject) => {
283 const onError = (err: Error) => {
284 nodeStdin.off("error", onError);
285 reject(err);
286 };
287 nodeStdin.on("error", onError);
288
289 nodeStdin.write(Buffer.from(chunk), (err) => {

Callers 1

execFunction · 0.70

Calls 3

rejectFunction · 0.85
cleanupFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected