Skip to content

Commit 0461689

Browse files
committed
Fix panic using wrong err object
1 parent aec0a60 commit 0461689

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/internal/nginx/exec.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ func shExec(args []string) (string, error) {
3333
c := exec.Command(ng, args...)
3434

3535
b, e := c.CombinedOutput()
36-
3736
if e != nil {
38-
logger.Error("NginxError", eris.Wrapf(err, "Command error: %s -- %v\n%+v", ng, args, e))
37+
logger.Error("NginxError", eris.Wrapf(e, "Command error: %s -- %v\n%+v", ng, args, e))
3938
logger.Warn(string(b))
4039
}
4140

0 commit comments

Comments
 (0)