Skip to content

Commit

Permalink
fix: remove excessive quoting from error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stormqueen1990 committed Jan 30, 2024
1 parent ce316b4 commit aaff543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kustomize/commands/edit/set/setconfigmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func findConfigMapArgs(m *types.Kustomization, name, namespace string) (*types.C
})

if cmIndex == -1 {
return nil, fmt.Errorf("unable to find ConfigMap with name '%q'", name)
return nil, fmt.Errorf("unable to find ConfigMap with name %q", name)
}

return &m.ConfigMapGenerator[cmIndex], nil
Expand Down
2 changes: 1 addition & 1 deletion kustomize/commands/edit/set/setsecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func findSecretArgs(m *types.Kustomization, name, namespace string) (*types.Secr
})

if cmIndex == -1 {
return nil, fmt.Errorf("unable to find Secret with name '%q'", name)
return nil, fmt.Errorf("unable to find Secret with name %q", name)
}

return &m.SecretGenerator[cmIndex], nil
Expand Down

0 comments on commit aaff543

Please sign in to comment.