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

Function error

packages/effect/src/Console.ts:413–418  ·  view source on GitHub ↗
(...args: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

411 * @since 2.0.0
412 */
413export const error = (...args: ReadonlyArray<any>): Effect.Effect<void> =>
414 consoleWith((console) =>
415 effect.sync(() => {
416 console.error(...args)
417 })
418 )
419
420/**
421 * Creates a scoped console group, optionally collapsed and labeled, and closes it automatically when the Effect scope is finalized.

Callers 4

throwsFunction · 0.50
throwsAsyncFunction · 0.50
throwsFunction · 0.50
throwsAsyncFunction · 0.50

Calls 3

consoleWithFunction · 0.85
errorMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected