test: Add log for fw4 reload error

This commit is contained in:
世界 2025-08-03 00:12:24 +08:00
parent 07e21b9170
commit 4a56d47035
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -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
} }