use fmt and errors pkg from std lib for newPackageCmd

Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
pull/12063/head
James Sheppard 2 years ago
parent 1daa94e403
commit d523a3fcf4

@ -17,12 +17,12 @@ limitations under the License.
package main
import (
"errors"
"fmt"
"io"
"os"
"path/filepath"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"helm.sh/helm/v3/pkg/action"
@ -57,7 +57,7 @@ func newPackageCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
Long: packageDesc,
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
return errors.Errorf("need at least one argument, the path to the chart")
return fmt.Errorf("need at least one argument, the path to the chart")
}
if client.Sign {
if client.Key == "" {

Loading…
Cancel
Save