This commit is contained in:
iCrawl
2017-08-12 11:28:47 +02:00
parent 2611efe9c1
commit 5dc83a1b03

View File

@@ -24,8 +24,5 @@ exports.fetch = engineOptions => {
if (fetched) return fetched;
}
exports.guaranteeOpusEngine = () => {
if (typeof opusEngineFound === 'undefined') opusEngineFound = Boolean(exports.fetch());
if (!opusEngineFound) throw new Error('Couldn\'t find an Opus engine.');
throw new Error('OPUS_ENGINE_MISSING');
};