« get me outta code hell

upd8, build-modes, etc: show a lot more traces by default - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write/build-modes
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-04-13 08:13:51 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-04-13 08:13:51 -0300
commit584dc0aa02cd0f586b2917eccb5d62fd73abdc3b (patch)
treef038d73aa5f17913fe77ea208734e16c16cb3daa /src/write/build-modes
parent75a67307beaed760687a5f0f0f3988088d09233f (diff)
upd8, build-modes, etc: show a lot more traces by default
Diffstat (limited to 'src/write/build-modes')
-rw-r--r--src/write/build-modes/live-dev-server.js4
-rw-r--r--src/write/build-modes/static-build.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index 67d90c87..aebdb234 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -142,7 +142,7 @@ export async function go({
   const showError = (error) => {
     if (niceShowAggregate) {
       if (error.errors || error.cause) {
-        niceShowAggregate(error);
+        niceShowAggregate(error, {showTraces: true});
         return;
       }
     }
@@ -203,7 +203,7 @@ export async function go({
   try {
     pathAggregate.close();
   } catch (error) {
-    niceShowAggregate(error);
+    niceShowAggregate(error, {showTraces: true});
     logWarn`Failed to compute page paths for some targets.`;
     logWarn`This means some pages that normally exist will be 404s.`;
     fileIssue();
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js
index 89450fc2..71553de3 100644
--- a/src/write/build-modes/static-build.js
+++ b/src/write/build-modes/static-build.js
@@ -385,7 +385,7 @@ export async function go({
           ({pageHTML, oEmbedJSON} = html.resolve(topLevelResult));
         } catch (error) {
           logError`\rError generating page: ${pathname}`;
-          niceShowAggregate(error);
+          niceShowAggregate(error, {showTraces: true});
           errored = true;
           return;
         }