mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix panic using wrong err object
This commit is contained in:
parent
aec0a606af
commit
0461689d65
@ -33,9 +33,8 @@ func shExec(args []string) (string, error) {
|
||||
c := exec.Command(ng, args...)
|
||||
|
||||
b, e := c.CombinedOutput()
|
||||
|
||||
if e != nil {
|
||||
logger.Error("NginxError", eris.Wrapf(err, "Command error: %s -- %v\n%+v", ng, args, e))
|
||||
logger.Error("NginxError", eris.Wrapf(e, "Command error: %s -- %v\n%+v", ng, args, e))
|
||||
logger.Warn(string(b))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user