MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / error

Method error

out/cli.cjs:12706–12715  ·  view source on GitHub ↗

* Closes the controlled writable stream, making all future interactions with it fail with the given error `e`. * * This method is rarely used, since usually it suffices to return a rejected promise from one of the underlying * sink's methods. However, it can be useful for

(e3 = void 0)

Source from the content-addressed store, hash-verified

12704 * normal lifecycle of interactions with the underlying sink.
12705 */
12706 error(e3 = void 0) {
12707 if (!IsWritableStreamDefaultController(this)) {
12708 throw defaultControllerBrandCheckException$2("error");
12709 }
12710 const state2 = this._controlledWritableStream._state;
12711 if (state2 !== "writable") {
12712 return;
12713 }
12714 WritableStreamDefaultControllerError(this, e3);
12715 }
12716 /** @internal */
12717 [AbortSteps](reason) {
12718 const result = this._abortAlgorithm(reason);

Callers

nothing calls this directly

Tested by

no test coverage detected