test: Add log for fw4 reload error
This commit is contained in:
parent
07e21b9170
commit
4a56d47035
1 changed files with 2 additions and 2 deletions
|
|
@ -44,9 +44,9 @@ chain forward {
|
||||||
return E.Cause(err, "clean fw4 rules")
|
return E.Cause(err, "clean fw4 rules")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_, err = shell.Exec(fw4Path, "reload").Read()
|
output, err := shell.Exec(fw4Path, "reload").Read()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return E.Cause(err, "reload fw4 rules")
|
return E.Extend(E.Cause(err, "reload fw4 rules"), output)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue