« get me outta code hell

thumbs, upd8: adapt media cache path to always-present wiki cache - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-29 18:25:02 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-29 19:40:10 -0300
commitcbc808e6254d2e4a7b134e723d3fce701da6dd6d (patch)
tree41afbed2fd1fa4667f5e4042a56925d815d5ebb2 /src/upd8.js
parent17c300e225714aef65f8dfd83ef974f05b24c890 (diff)
thumbs, upd8: adapt media cache path to always-present wiki cache
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 11ebbd72..c18a0c54 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -890,17 +890,15 @@ async function main() {
         logError`a new path with ${'--media-cache-path'} or ${'HSMUSIC_MEDIA_CACHE'}.`;
         break;
 
-      case `missing wiki cache to create media cache inside`:
+      case `media path not provided`: /* unreachable */
         console.error('');
-        logError`It looks like you're starting totally fresh, so please`;
-        logError`create a ${'cache'} folder and provide it with ${'--cache-path'}`;
-        logError`or ${'HSMUSIC_CACHE'}. The media cache will automatically be`;
-        logError`generated inside of this folder!`;
+        logError`It seems a ${'--media-path'} (or ${'HSMUSIC_MEDIA'}) wasn't provided.`;
+        logError`Make sure one of these is actually pointing to a path that exists.`;
         break;
 
-      case `media path not provided`: /* unreachable */
+      case `cache path not provided`: /* unreachable */
         console.error('');
-        logError`It seems a ${'--media-path'} (or ${'HSMUSIC_MEDIA'}) wasn't provided.`;
+        logError`It seems a ${'--cache-path'} (or ${'HSMUSIC_CACHE'}) wasn't provided.`;
         logError`Make sure one of these is actually pointing to a path that exists.`;
         break;
     }