« get me outta code hell

data: misc. improvements for input validation & infrastructure - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-25 14:23:23 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-25 14:23:23 -0300
commitb5cfc2a793f22da60606a4dd7387fcf3d3163843 (patch)
treea759bcd319403262bd6ede26eaf3bd2f30359c86 /src/util
parent219596b6d52443d1090c94e50244cf79d548a167 (diff)
data: misc. improvements for input validation & infrastructure
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sugar.js7
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);