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 c84529c102
commit c4a7ce12e6

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