mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Also write out the rules that caused the problem to ease troubleshooting.
This commit is contained in:
parent
dd576193b2
commit
d835ffc8c2
@ -3115,7 +3115,7 @@ function discover_pkg_rules($ruletype) {
|
||||
if ($status <> 0) {
|
||||
$errorrules = sprintf(gettext("There was an error while parsing the package filter rules for %s."), $pkg_inc) . "\n";
|
||||
log_error($errorrules);
|
||||
file_put_contents("{$g['tmp_path']}/rules.packages.{$pkg}", "#{$errorrules}\n");
|
||||
file_put_contents("{$g['tmp_path']}/rules.packages.{$pkg}", "#{$errorrules}\n{$tmprules}\n");
|
||||
continue;
|
||||
}
|
||||
$rules .= $tmprules;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user