mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
Opus engine fetching: don't ignore non-missing errors (#1555)
* Opus engine fetching: don't ignore non-missing errors * typo fix
This commit is contained in:
@@ -9,7 +9,10 @@ function fetch(Encoder, engineOptions) {
|
|||||||
try {
|
try {
|
||||||
return new Encoder(engineOptions);
|
return new Encoder(engineOptions);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return null;
|
if (err.message.includes('Cannot find module')) return null;
|
||||||
|
|
||||||
|
// The Opus engine exists, but another error occurred.
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user