Skip to content

Commit

Permalink
fix: cluster creation error message formatting
Browse files Browse the repository at this point in the history
Use "%w" to properly unwrap the error operand

Signed-off-by: Tim Jones <tim.jones@siderolabs.com>
  • Loading branch information
TimJones committed May 24, 2022
1 parent bafa1f4 commit 4551cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/talosctl/cmd/mgmt/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ func postCreate(ctx context.Context, clusterAccess *access.Adapter) error {
func saveConfig(talosConfigObj *clientconfig.Config) (err error) {
c, err := clientconfig.Open(talosconfig)
if err != nil {
return fmt.Errorf("error opening talos config: %s", err)
return fmt.Errorf("error opening talos config: %w", err)
}

renames := c.Merge(talosConfigObj)
Expand Down

0 comments on commit 4551cbd

Please sign in to comment.