diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/sugar.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/sugar.js b/src/util/sugar.js index 14fb250e..24d409fb 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -599,12 +599,7 @@ export function showAggregate(topError, { return [headerPart, causePart, aggregatePart].filter(Boolean).join('\n'); }; - const message = - (topError instanceof AggregateError - ? recursive(topError, {level: 0}) - : (showTraces - ? topError.stack - : topError.toString())); + const message = recursive(topError, {level: 0}); if (print) { console.error(message); |