mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +00: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:
parent
b49266baa5
commit
2116fba4c2
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue