Skip to content

Commit

Permalink
fix(Plugins): Return error rather than logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Apr 5, 2021
1 parent 8122ba0 commit b5278e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ pub async fn install_list(
for plugin in plugins {
match install(&plugin, &kinds, &aliases).await {
Ok(_) => tracing::info!("Added plugin {}", plugin),
Err(error) => tracing::error!("{}", error),
Err(error) => bail!(error),
}
}
Ok(())
Expand All @@ -605,7 +605,7 @@ pub fn uninstall_list(plugins: Vec<String>, aliases: &HashMap<String, String>) -
for plugin in plugins {
match uninstall(&plugin, &aliases) {
Ok(_) => tracing::info!("Removed plugin {}", plugin),
Err(error) => tracing::error!("{}", error),
Err(error) => bail!(error),
}
}
Ok(())
Expand Down

0 comments on commit b5278e1

Please sign in to comment.