Skip to content

Commit

Permalink
fix(cmd): fixed err output for delete and deploy commands (#9437)
Browse files Browse the repository at this point in the history
  • Loading branch information
idsulik authored Jun 10, 2024
1 parent f386e6c commit 1185081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/skaffold/app/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func doDelete(ctx context.Context, out io.Writer) error {

manifestListByConfig, err := r.Render(ctx, io.Discard, bRes, false)
if err != nil {
return err
return fmt.Errorf("rendering manifests: %w", err)
}
return r.Cleanup(ctx, out, dryRun, manifestListByConfig, opts.Command)
})
Expand Down
3 changes: 2 additions & 1 deletion cmd/skaffold/app/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package cmd

import (
"context"
"fmt"
"io"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -54,7 +55,7 @@ func doDeploy(ctx context.Context, out io.Writer) error {
// Render
manifests, errR := r.Render(ctx, out, buildArtifacts, false)
if errR != nil {
return errR
return fmt.Errorf("rendering manifests: %w", errR)
}
return r.DeployAndLog(ctx, out, buildArtifacts, manifests)
})
Expand Down

0 comments on commit 1185081

Please # to comment.