« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/play.js')
-rwxr-xr-xsrc/play.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/play.js b/src/play.js
index c754836..ac6a232 100755
--- a/src/play.js
+++ b/src/play.js
@@ -544,9 +544,14 @@ async function main(args) {
   await processArgv(args, optionFunctions)
 
   if (activePlaylist === null) {
-    throw new Error(
+    console.error(
       "Cannot play - no open playlist. Try --open <playlist file>?"
     )
+    console.error(
+      "You could also try \x1b[1mhttp-music setup\x1b[0m to easily " +
+      "create a playlist file!"
+    )
+    return false
   }
 
   if (willPlay || (willPlay === null && shouldPlay)) {