Skip to content

Commit

Permalink
process.exit(1) on failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl authored and derhuerst committed Jan 27, 2020
1 parent d29eaaa commit 503b7ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 503b7ed

Please sign in to comment.