MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / serializeError

Function serializeError

src/repeat.js:47–51  ·  view source on GitHub ↗
({ name, message, stack })

Source from the content-addressed store, hash-verified

45// should be a good fingerprint.
46// Also we only keep first 10 call sites in case of infinitely recursive stack.
47const serializeError = ({ name, message, stack }) => {
48 const messageA = String(message).includes(PREFIX) ? `${message}\n` : ''
49 const stackA = serializeStack(stack)
50 return `${name}\n${messageA}${stackA}`
51}
52
53const serializeStack = (stack) =>
54 String(stack)

Callers 1

getPreviousEventFunction · 0.85

Calls 1

serializeStackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…