[testBundles] throw intelligible error when the plugin is missing

This commit is contained in:
spalger 2016-02-12 16:00:54 -07:00
parent d664a772c7
commit 53b35c4ad4

View file

@ -24,6 +24,7 @@ module.exports = (kibana) => {
if (testingPluginId) {
const plugin = plugins.byId[testingPluginId];
if (!plugin) throw new Error('Invalid testingPluginId :: unknown plugin ' + testingPluginId);
// add the modules from all of this plugins apps
for (let app of plugin.apps) {