Skip to content

Commit

Permalink
chore: add a message on uninstallation
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed May 14, 2024
1 parent 1835268 commit 2fe4f21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/plugin/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ func (m *Manager) Uninstall(ctx context.Context, name string) error {
m.logger.ErrorContext(ctx, "No such plugin")
return nil
}
return os.RemoveAll(pluginDir)
if err := os.RemoveAll(pluginDir); err != nil {
return xerrors.Errorf("failed to uninstall the plugin: %w", err)
}
m.logger.InfoContext(ctx, "Plugin successfully uninstalled", log.String("name", name))
return nil
}

// Information gets the information about an installed plugin
Expand Down

0 comments on commit 2fe4f21

Please sign in to comment.