« get me outta code hell

upd8: show surprise-thrown aggregate errors out of yaml steps - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-08 12:44:35 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-08 12:44:53 -0300
commit4a0f071064aeb95749f40f93b51f86c3c882bfeb (patch)
tree115a126d4961a96a0ebb7541b8a80892d4d2dc24
parentf00c3273409fe316f304541b7287656db76d7b67 (diff)
upd8: show surprise-thrown aggregate errors out of yaml steps
-rwxr-xr-xsrc/upd8.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 8ce3ab2..600cc25 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1078,7 +1078,10 @@ async function main() {
 
   {
     const whoops = (error, stage) => {
+      if (!paragraph) console.log('');
+
       console.error(error);
+      niceShowAggregate(error);
 
       logError`There was a JavaScript error ${stage}.`;
       fileIssue();