You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
357 B
JavaScript
12 lines
357 B
JavaScript
'use strict';
|
|
|
|
module.exports = function prettifyStack(stack) {
|
|
return stack.map((stackLine) => {
|
|
if (stackLine.type === "ignored") {
|
|
return ` ... omitted ${stackLine.count} lines ...`;
|
|
} else {
|
|
return `${stackLine.methodName} (line ${stackLine.lineNumber} in ${stackLine.file})`
|
|
}
|
|
}).join("\n");
|
|
};
|