MCPcopy Create free account
hub / github.com/arctic-cli/interface / formatError

Function formatError

packages/arctic/src/util/log.ts:90–95  ·  view source on GitHub ↗
(error: Error, depth = 0)

Source from the content-addressed store, hash-verified

88 }
89
90 function formatError(error: Error, depth = 0): string {
91 const result = error.message
92 return error.cause instanceof Error && depth < 10
93 ? result + " Caused by: " + formatError(error.cause, depth + 1)
94 : result
95 }
96
97 let last = Date.now()
98 export function create(tags?: Record<string, any>) {

Callers 1

buildFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected