mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-31 14:35:45 +00:00
Fix panic using wrong err object
This commit is contained in:
@@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user