« get me outta code hell

Fix a silly issue in openPlaylist - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-06-26 23:06:36 -0300
committerliam4 <towerofnix@gmail.com>2017-06-26 23:06:36 -0300
commite56cdd69c330f2747c77b5db1595fddb6f6d1f10 (patch)
treec36ddb25e3e6806736f63d2e0e01374554984c63
parent3de1ec881ef258baf2010b92c0751fb9f4fc2d42 (diff)
Fix a silly issue in openPlaylist
-rwxr-xr-xsrc/http-music.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http-music.js b/src/http-music.js
index 7686b45..31f0dca 100755
--- a/src/http-music.js
+++ b/src/http-music.js
@@ -38,7 +38,7 @@ Promise.resolve()
       try {
         playlistText = await readFile(file, 'utf-8')
       } catch(err) {
-        if (silent) {
+        if (!silent) {
           console.error("Failed to read playlist file: " + file)
         }
 
@@ -246,7 +246,7 @@ Promise.resolve()
       }
     }
 
-    await openPlaylist('./playlist.json')
+    await openPlaylist('./playlist.json', true)
 
     await processArgv(process.argv, optionFunctions)