From 503b7edc06c5d4624c8420915ffb5962b69c1386 Mon Sep 17 00:00:00 2001 From: Jon Perl Date: Mon, 27 Jan 2020 10:58:58 -0700 Subject: [PATCH] process.exit(1) on failures --- install.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.js b/install.js index 98b6d25..ae654ad 100644 --- a/install.js +++ b/install.js @@ -65,9 +65,13 @@ if (ffmpegPath) { downloadFile(getDownloadUrl(), ffmpegPath, onProgress).then(() => { // make executable fs.chmodSync(ffmpegPath, 0o755); + }).catch(error => { + console.error(error); + process.exit(1); }); } else { console.error( "ffmpeg-static install failed: No binary found for architecture" ); + process.exit(1); }