« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/sugar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/sugar.js')
-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 219c3ee..d6bc3df 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)');