MCPcopy Create free account
hub / github.com/Effect-TS/effect / onError

Function onError

packages/platform/browser/src/BrowserHttpClient.ts:274–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 }
273 }
274 const onError = () => {
275 resume(Effect.fail(this.onError(this.source.statusText)))
276 }
277 this.source.addEventListener("readystatechange", onReadyStateChange)
278 this.source.addEventListener("error", onError)
279 return Effect.sync(() => {

Callers

nothing calls this directly

Calls 3

onErrorMethod · 0.80
resumeFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected