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

Function getAttributes

packages/effect/src/ErrorReporter.ts:563–565  ·  view source on GitHub ↗
(error: object)

Source from the content-addressed store, hash-verified

561 * @since 4.0.0
562 */
563export const getAttributes = (error: object): ReadonlyRecord<string, unknown> => {
564 return attributes in error ? error[attributes] as any : emptyAttributes
565}
566
567const emptyAttributes: ReadonlyRecord<string, unknown> = {}

Callers 1

reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected