MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / error

Method error

out/cli.cjs:14471–14476  ·  view source on GitHub ↗

* Errors both the readable side and the writable side of the controlled transform stream, making all future * interactions with it fail with the given error `e`. Any chunks queued for transformation will be discarded.

(reason = void 0)

Source from the content-addressed store, hash-verified

14469 * interactions with it fail with the given error `e`. Any chunks queued for transformation will be discarded.
14470 */
14471 error(reason = void 0) {
14472 if (!IsTransformStreamDefaultController(this)) {
14473 throw defaultControllerBrandCheckException("error");
14474 }
14475 TransformStreamDefaultControllerError(this, reason);
14476 }
14477 /**
14478 * Closes the readable side and errors the writable side of the controlled transform stream. This is useful when the
14479 * transformer only needs to consume a portion of the chunks written to the writable side.

Callers

nothing calls this directly

Tested by

no test coverage detected