« get me outta code hell

bam (Thing subclasses: several steps, one file) - 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>2022-02-12 17:38:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-12 17:40:01 -0400
commit95bd943d62473e53de11cd6368e540cd48e4231a (patch)
treea6e1f0a21222eaeb01a270d8202a31616903649b /src/util
parentcfa02cb03a363c46408db7f0ec54bd3a7e4ad018 (diff)
bam (Thing subclasses: several steps, one file)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sugar.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/sugar.js b/src/util/sugar.js
index 219c3eec..d6bc3df6 100644
--- a/src/util/sugar.js
+++ b/src/util/sugar.js
@@ -356,7 +356,8 @@ export function showAggregate(topError, {pathToFile = p => p} = {}) {
         const stackLine = stackLines?.find(line =>
             line.trim().startsWith('at')
             && !line.includes('sugar')
-            && !line.includes('node:internal'));
+            && !line.includes('node:internal')
+            && !line.includes('<anonymous>'));
         const tracePart = (stackLine
             ? '- ' + stackLine.trim().replace(/file:\/\/(.*\.js)/, (match, pathname) => pathToFile(pathname))
             : '(no stack trace)');