add a message, because WHY THE HELL DID NO ONE EVER DO THIS (#690)

* add a message, because WHY THE HELL DID NO ONE EVER DO THIS

!!!

* make message better

* make linter happy

* disable max-len rule for line 37

* make gawdl3y be happy

* gawdl3y triggers me

* Update FfmpegConverterEngine.js
This commit is contained in:
Gus Caplan
2016-09-11 20:28:17 -05:00
committed by Schuyler Cebulskie
parent 9059eb13a2
commit 032d6613f7

View File

@@ -34,7 +34,10 @@ function chooseCommand() {
for (const cmd of ['ffmpeg', 'avconv', './ffmpeg', './avconv']) {
if (!ChildProcess.spawnSync(cmd, ['-h']).error) return cmd;
}
return null;
throw new Error(
'FFMPEG was not found on your system, so audio cannot be played.' +
'Please make sure FFMPEG is installed and in your PATH'
);
}
module.exports = FfmpegConverterEngine;