mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
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:
parent
9059eb13a2
commit
032d6613f7
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue