Skip to content
Snippets Groups Projects
Commit d6ef15ca authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix: report a more specific error when plugin is dropped while we're waiting...

fix: report a more specific error when plugin is dropped while we're waiting for enable plugin operation to finish
parent 176720d2
No related branches found
No related tags found
1 merge request!1218return errors from governor to client
Pipeline #48822 passed
......@@ -845,7 +845,8 @@ pub fn enable_plugin(
}
let Some(plugin_def) = node.storage.plugins.get(plugin)? else {
return Err(PluginError::PluginNotFound(plugin.clone()).into());
#[rustfmt::skip]
return Err(Error::other(format!("plugin `{plugin}` has been dropped by a concurrent request")));
};
if !plugin_def.enabled {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment