From c4a7ce12e60e2c1db522788866a99062848f37fe Mon Sep 17 00:00:00 2001 From: aemino Date: Thu, 1 Jun 2017 01:29:55 -0700 Subject: [PATCH] Opus engine fetching: don't ignore non-missing errors (#1555) * Opus engine fetching: don't ignore non-missing errors * typo fix --- src/client/voice/opus/OpusEngineList.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/voice/opus/OpusEngineList.js b/src/client/voice/opus/OpusEngineList.js index 447f0afdb..3b69cdaeb 100644 --- a/src/client/voice/opus/OpusEngineList.js +++ b/src/client/voice/opus/OpusEngineList.js @@ -9,7 +9,10 @@ function fetch(Encoder, engineOptions) { try { return new Encoder(engineOptions); } catch (err) { - return null; + if (err.message.includes('Cannot find module')) return null; + + // The Opus engine exists, but another error occurred. + throw err; } }