mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01: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:
committed by
Schuyler Cebulskie
parent
9059eb13a2
commit
032d6613f7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user