« get me outta code hell

Make some error handling for YouTube downloads - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/downloaders.js
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-07-21 22:27:34 -0300
committerliam4 <towerofnix@gmail.com>2017-07-21 22:27:34 -0300
commitb6e90e8f380569803b9a83f8997159b34d64e501 (patch)
treeb2ac9c18415301e90dc9980255ea48e54a87b9f7 /src/downloaders.js
parent13ec7f5c5408c787e8e424a79ffeea281b044b6f (diff)
Make some error handling for YouTube downloads
Diffstat (limited to 'src/downloaders.js')
-rw-r--r--src/downloaders.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/downloaders.js b/src/downloaders.js
index 0e2b1bb..04838c2 100644
--- a/src/downloaders.js
+++ b/src/downloaders.js
@@ -40,6 +40,7 @@ function makeYouTubeDownloader() {
 
     return promisifyProcess(spawn('youtube-dl', opts))
       .then(() => tempDir + '/dl.mp3')
+      .catch(err => false)
   }
 }