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

Function addError

packages/effect/src/unstable/eventlog/Event.ts:439–447  ·  view source on GitHub ↗
(event: Any, error: Schema.Top)

Source from the content-addressed store, hash-verified

437 error: Error2
438): AddError<A, Error2>
439export function addError(event: Any, error: Schema.Top): Any {
440 return make({
441 tag: event.tag,
442 primaryKey: event.primaryKey,
443 payload: event.payload,
444 success: event.success,
445 error: Schema.Union([event.error, error])
446 })
447}

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected