[testBundles] throw intelligible error when the plugin is missing
This commit is contained in:
parent
d664a772c7
commit
53b35c4ad4
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue