MCPcopy Index your code
hub / github.com/TruthHun/BookStack / parseStackAndMessage

Function parseStackAndMessage

static/word2md/mammoth.browser.js:5225–5234  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

5223}
5224
5225function parseStackAndMessage(error) {
5226 var stack = error.stack;
5227 var message = error.toString();
5228 stack = typeof stack === "string" && stack.length > 0
5229 ? stackFramesAsArray(error) : [" (No stack trace)"];
5230 return {
5231 message: message,
5232 stack: error.name == "SyntaxError" ? stack : cleanStack(stack)
5233 };
5234}
5235
5236function formatAndLogError(error, title, isSoft) {
5237 if (typeof console !== "undefined") {

Callers 3

warnFunction · 0.70
mammoth.browser.jsFile · 0.70

Calls 2

stackFramesAsArrayFunction · 0.70
cleanStackFunction · 0.70

Tested by

no test coverage detected