diff --git a/cmd/uncloud/context/connection.go b/cmd/uncloud/context/connection.go index 23840d47..08da54a4 100644 --- a/cmd/uncloud/context/connection.go +++ b/cmd/uncloud/context/connection.go @@ -60,7 +60,7 @@ func selectConnection(uncli *cli.CLI) error { return fmt.Errorf("save config: %w", err) } - fmt.Printf("Default connection for context '%s' is now '%s'.\n", currentCtxName, selected) + fmt.Printf("Default connection for context '%s' is now '%s'.\n", currentCtxName, selected.String()) return nil }