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:
aemino
2017-06-01 01:29:55 -07:00
committed by Crawl
parent b49266baa5
commit 2116fba4c2

View File

@@ -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;
}
}