MCPcopy Index your code
hub / github.com/webpack/webpack-dev-server / parseErrorToStacks

Function parseErrorToStacks

client-src/overlay.js:255–264  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

253 * @returns {undefined | string[]} stack
254 */
255const parseErrorToStacks = (error) => {
256 if (!error || !(error instanceof Error)) {
257 throw new Error("parseErrorToStacks expects Error object");
258 }
259 if (typeof error.stack === "string") {
260 return error.stack
261 .split("\n")
262 .filter((stack) => stack !== `Error: ${error.message}`);
263 }
264};
265
266/**
267 * @callback ErrorCallback

Callers 1

handleErrorFunction · 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…