Skip to content

Commit

Permalink
Fix nginx error check
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jun 23, 2017
1 parent 0153726 commit b28485c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/nginx/pkg/cmd/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
return err
}

o, e := exec.Command(n.binary, "-s", "reload", "-c", cfgPath).CombinedOutput()
o, err := exec.Command(n.binary, "-s", "reload", "-c", cfgPath).CombinedOutput()
if err != nil {
return fmt.Errorf("%v\n%v", e, string(o))
return fmt.Errorf("%v\n%v", err, string(o))
}

return nil
Expand Down

0 comments on commit b28485c

Please sign in to comment.