From 584dc0aa02cd0f586b2917eccb5d62fd73abdc3b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 13 Apr 2026 08:13:51 -0300 Subject: upd8, build-modes, etc: show a lot more traces by default --- src/upd8.js | 18 +++++++++--------- src/write/build-modes/live-dev-server.js | 4 ++-- src/write/build-modes/static-build.js | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/upd8.js b/src/upd8.js index e9353007..b2f6e638 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1590,7 +1590,7 @@ async function main() { if (!paragraph) console.log(''); console.error(error); - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); logError`There was a JavaScript error ${stage}.`; fileIssue(); @@ -1869,7 +1869,7 @@ async function main() { } } catch (error) { if (!paragraph) console.log(''); - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); console.log(''); logError`There was an error precaching internal data objects.`; @@ -1960,7 +1960,7 @@ async function main() { }); } catch (aggregate) { if (!paragraph) console.log(''); - niceShowAggregate(aggregate); + niceShowAggregate(aggregate, {showTraces: true}); logError`Failed to initialize artwork data connections properly.`; fileIssue(); @@ -2157,7 +2157,7 @@ async function main() { aggregate.close(); } catch (error) { - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); logError`Couldn't load internal default URL spec.`; logError`This is required to build the wiki, so stopping here.`; fileIssue(); @@ -2271,7 +2271,7 @@ async function main() { try { processURLSpecsAggregate.close(); } catch (error) { - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); logWarn`There were errors loading the optional URL specs you`; logWarn`selected using ${'--urls'}. Since they might misfunction,`; logWarn`debug the errors or remove the failing ones from ${'--urls'}.`; @@ -2540,7 +2540,7 @@ async function main() { try { internalDefaultLanguage = await processLanguageFile(internalDefaultStringsFile); } catch (error) { - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); errorLoadingInternalDefaultLanguage = true; } } @@ -2692,7 +2692,7 @@ async function main() { for (const {status, value: language, reason: error} of results) { if (status === 'rejected') { errorLoadingCustomLanguages = true; - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); } else { languages[language.code] = language; } @@ -3182,7 +3182,7 @@ async function main() { }); } catch (error) { if (!paragraph) console.log(''); - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); logError`There was an error preparing or writing search data.`; fileIssue(); @@ -3232,7 +3232,7 @@ async function main() { preparedWebRoutes = result; } catch (error) { if (!paragraph) console.log(''); - niceShowAggregate(error); + niceShowAggregate(error, {showTraces: true}); logError`There was an issue identifying web routes!`; fileIssue(); 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; } -- cgit 1.3.0-6-gf8a5