diff options
author | liam4 <towerofnix@gmail.com> | 2017-06-26 23:06:36 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-06-26 23:06:36 -0300 |
commit | e56cdd69c330f2747c77b5db1595fddb6f6d1f10 (patch) | |
tree | c36ddb25e3e6806736f63d2e0e01374554984c63 | |
parent | 3de1ec881ef258baf2010b92c0751fb9f4fc2d42 (diff) |
Fix a silly issue in openPlaylist
-rwxr-xr-x | src/http-music.js | 4 |
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) |