New ๐ŸŒŠ wave for @helm

Commit 1e3a3a8b

1e3a3a8b244eMerged

Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

errorlint: use %w for errors

Details

Commit
1e3a3a8b244e
Parent
78e41120b0f2

pkg/template/extra.gomodifiedView file

@@ -27,7 +27,7 @@
2727 m := Values{}
2828
2929 if err := yaml.Unmarshal([]byte(str), &m); err != nil {
30- return nil, fmt.Errorf("%s, offending yaml: %s", err, str)
30+ return nil, fmt.Errorf("%w, offending yaml: %s", err, str)
3131 }
3232 return m, nil
3333 }
@@ -69,7 +69,7 @@
6969 for {
7070 n, err := io.WriteString(stdin, input[i:])
7171 if err != nil {
72- return fmt.Errorf("failed while writing %d bytes to stdin of \"%s\": %v", len(input), command, err)
72+ return fmt.Errorf("failed while writing %d bytes to stdin of \"%s\": %w", len(input), command, err)
7373 }
7474
7575 i += n