MCPcopy
hub / github.com/Effect-TS/effect / onError

Function onError

packages/platform-browser/src/internal/httpClient.ts:187–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 }
186 }
187 const onError = () => {
188 resume(Effect.fail(this.onError(this.source.statusText)))
189 }
190 this.source.addEventListener("readystatechange", onReadyStateChange)
191 this.source.addEventListener("error", onError)
192 return Effect.sync(() => {

Callers

nothing calls this directly

Calls 3

onErrorMethod · 0.80
failMethod · 0.65
resumeFunction · 0.50

Tested by

no test coverage detected