diff options
Diffstat (limited to 'src/aggregate.js')
| -rw-r--r-- | src/aggregate.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/aggregate.js b/src/aggregate.js index cb806e89..23a67d20 100644 --- a/src/aggregate.js +++ b/src/aggregate.js @@ -371,11 +371,12 @@ export function _withAggregate(mode, aggregateOpts, fn) { } export const unhelpfulTraceLines = [ - /sugar/, - /sort/, - /aggregate/, - /composite/, - /cacheable-object/, + /sugar\.js/, + /sort\.js/, + /aggregate\.js/, + /composite\.js/, + /cacheable-object\.js/, + /html\.js/, /node:/, /<anonymous>/, ]; @@ -416,6 +417,7 @@ export function showAggregate(topError, { pathToFileURL = f => f, showTraces = true, showTranslucent = showTraces, + showClasses = showTraces, print = true, } = {}) { const getTranslucency = error => @@ -568,10 +570,10 @@ export function showAggregate(topError, { message || `(no message)`; const kindPart = - kind || `unnamed kind`; + kind || `unnamed class`; let headerPart = - (showTraces + (showClasses ? `[${kindPart}] ${messagePart}` : errors ? `[${messagePart}]` @@ -604,7 +606,7 @@ export function showAggregate(topError, { headerPart += ` ${colors.dim(tracePart)}`; } - const head1 = level % 2 === 0 ? '\u21aa' : colors.dim('\u21aa'); + const head1 = '\u21aa'; const bar1 = ' '; const causePart = |