mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-03-14 09:38:15 -04: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...)
|
c := exec.Command(ng, args...)
|
||||||
|
|
||||||
b, e := c.CombinedOutput()
|
b, e := c.CombinedOutput()
|
||||||
|
|
||||||
if e != nil {
|
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))
|
logger.Warn(string(b))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user