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

Function getMessage

src/error.js:11–14  ·  view source on GitHub ↗
({ message }, event)

Source from the content-addressed store, hash-verified

9}
10
11const getMessage = ({ message }, event) =>
12 event === 'rejectionHandled'
13 ? message.replace(MESSAGES.unhandledRejection, '')
14 : message
15
16const MESSAGES = {
17 uncaughtException: '\nThis exception was thrown but not caught.',

Callers 1

getErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…