test: Add log for fw4 reload error

This commit is contained in:
世界
2025-08-03 00:12:24 +08:00
parent 07e21b9170
commit 4a56d47035

View File

@@ -44,9 +44,9 @@ chain forward {
return E.Cause(err, "clean fw4 rules")
}
}
_, err = shell.Exec(fw4Path, "reload").Read()
output, err := shell.Exec(fw4Path, "reload").Read()
if err != nil {
return E.Cause(err, "reload fw4 rules")
return E.Extend(E.Cause(err, "reload fw4 rules"), output)
}
return nil
}