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

Function formatAndLogError

static/word2md/mammoth.browser.js:5236–5252  ·  view source on GitHub ↗
(error, title, isSoft)

Source from the content-addressed store, hash-verified

5234}
5235
5236function formatAndLogError(error, title, isSoft) {
5237 if (typeof console !== "undefined") {
5238 var message;
5239 if (util.isObject(error)) {
5240 var stack = error.stack;
5241 message = title + formatStack(stack, error);
5242 } else {
5243 message = title + String(error);
5244 }
5245 if (typeof printWarning === "function") {
5246 printWarning(message, isSoft);
5247 } else if (typeof console.log === "function" ||
5248 typeof console.log === "object") {
5249 console.log(message);
5250 }
5251 }
5252}
5253
5254function fireRejectionEvent(name, localHandler, reason, promise) {
5255 var localEventFired = false;

Callers 2

warnFunction · 0.70
fireRejectionEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected