MCPcopy Index your code
hub / github.com/nodejs/node / extractErrorMessage

Function extractErrorMessage

lib/internal/debugger/inspect_repl.js:170–174  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

168}
169
170function extractErrorMessage(stack) {
171 if (!stack) return '<unknown>';
172 const m = RegExpPrototypeExec(/^\w+: ([^\n]+)/, stack);
173 return m?.[1] ?? stack;
174}
175
176function convertResultToError(result) {
177 const { className, description } = result;

Callers 1

convertResultToErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected