Skip to content

Commit

Permalink
Fix err assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Aug 8, 2024
1 parent 7d1665b commit f15f2c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/manager/serverless/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (sls *Manager) runDeploy(w io.Writer) error {
term.WithStderr(&stderr),
)

err := t.InteractiveRun(cmd)
err = t.InteractiveRun(cmd)
if err != nil {
// Return the error along with stderr output
return fmt.Errorf("command failed with error: %w, %s %s", err, stderr.String(), stdout.String())
Expand Down Expand Up @@ -272,7 +272,7 @@ func (sls *Manager) runRemove(w io.Writer) error {
term.WithStderr(&stderr),
)

err := t.InteractiveRun(cmd)
err = t.InteractiveRun(cmd)
if err != nil {
// Return the error along with stderr output
return fmt.Errorf("command failed with error: %w, %s %s", err, stderr.String(), stdout.String())
Expand Down Expand Up @@ -319,7 +319,7 @@ func (sls *Manager) runCreateDomain(w io.Writer) error {
term.WithStderr(&stderr),
)

err := t.InteractiveRun(cmd)
err = t.InteractiveRun(cmd)
if err != nil {
// Return the error along with stderr output
return fmt.Errorf("command failed with error: %w, %s %s", err, stderr.String(), stdout.String())
Expand Down Expand Up @@ -366,7 +366,7 @@ func (sls *Manager) runRemoveDomain(w io.Writer) error {
term.WithStderr(&stderr),
)

err := t.InteractiveRun(cmd)
err = t.InteractiveRun(cmd)
if err != nil {
// Return the error along with stderr output
return fmt.Errorf("command failed with error: %w, %s %s", err, stderr.String(), stdout.String())
Expand Down

0 comments on commit f15f2c7

Please sign in to comment.