use fmt pkg for Errorf call in options.go

Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
pull/12063/head
James Sheppard 2 years ago
parent 4eb8eaecee
commit bbb57bb681

@ -17,6 +17,7 @@ limitations under the License.
package values package values
import ( import (
"fmt"
"io" "io"
"net/url" "net/url"
"os" "os"
@ -63,7 +64,7 @@ func (opts *Options) MergeValues(p getter.Providers) (map[string]interface{}, er
// User specified a value via --set-json // User specified a value via --set-json
for _, value := range opts.JSONValues { for _, value := range opts.JSONValues {
if err := strvals.ParseJSON(value, base); err != nil { if err := strvals.ParseJSON(value, base); err != nil {
return nil, errors.Errorf("failed parsing --set-json data %s", value) return nil, fmt.Errorf("failed parsing --set-json data %s", value)
} }
} }

Loading…
Cancel
Save