diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 0c8a6ff687..ec13d235ee 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -154,10 +154,10 @@ function filter_configure_sync() { $rules_file = `/bin/cat /tmp/rules.debug`; $line_split = split("\n", $rules_file); if(is_array($line_split)) - $line_error = "The line in question reads [{$line_number}]:
" . $line_split[$line_number]; + $line_error = "The line in question reads [{$line_number}]: " . $line_split[$line_number]; file_notice("filter_load", "There was error(s) loading the rules: " . $rules_error . " " . $line_error, "Filter Reload", ""); - log_error("There was error(s) loading the rules:

" . $rules_error . "\n" . $line_error);
-		return "There was error(s) loading the rules:

" . $rules_error . "\n" . $line_error . "
"; + log_error("There was error(s) loading the rules: " . $rules_error . " - " . $line_error); + return; } if(file_exists("/usr/local/pkg/pf/carp_sync_client.php"))