Better error for plugin file subscriptions

This commit is contained in:
Daniel Vestøl committed 2019-04-20 17:59:27 +02:00
1 parent 303f9d2999
commit b7ce4a18a4
1 file changed
+3 -1
+3 -1
View File
@@ -640,7 +640,9 @@ async function instanceManagement(instanceconfig) {
if(stuff[o] && !stuff[o].includes('\u0000\u0000')) {
try{
plugins[i].scriptOutput(stuff[o]);
}catch(e){console.error(e)}
}catch(e){
throw new Error(`Plugin ${pluginConfig.name} has a fileOutputSubscription but plugin.scriptOutput is not a function`)
}
}
}
},