« get me outta code hell

write: static-build: gently log failed content functions & continue - 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>2023-08-21 22:14:34 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-21 22:27:06 -0300
commit98133431c801a823f3430b0e178c56350e12622c (patch)
tree89ad4a65c161613a58a61c31ee373605d1fe96a1 /src/util
parent3adf33b567c53e79ce45a36031b29da719fb2377 (diff)
write: static-build: gently log failed content functions & continue
Diffstat (limited to 'src/util')
-rw-r--r--src/util/cli.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/cli.js b/src/util/cli.js
index f83c806..e8c8c79 100644
--- a/src/util/cli.js
+++ b/src/util/cli.js
@@ -334,7 +334,9 @@ export function progressCallAll(msgOrMsgFn, array) {
 export function fileIssue({
   topMessage = `This shouldn't happen.`,
 } = {}) {
-  console.error(color.red(`${topMessage} Please let the HSMusic developers know:`));
+  if (topMessage) {
+    console.error(color.red(`${topMessage} Please let the HSMusic developers know:`));
+  }
   console.error(color.red(`- https://hsmusic.wiki/feedback/`));
   console.error(color.red(`- https://github.com/hsmusic/hsmusic-wiki/issues/`));
 }