From e56cdd69c330f2747c77b5db1595fddb6f6d1f10 Mon Sep 17 00:00:00 2001 From: liam4 Date: Mon, 26 Jun 2017 23:06:36 -0300 Subject: Fix a silly issue in openPlaylist --- src/http-music.js | 4 ++-- 1 file 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) -- cgit 1.3.0-6-gf8a5