summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-07-30 12:46:54 -0400
committerjim-p <jimp@pfsense.org>2013-07-30 12:48:10 -0400
commit474c7b044053a0d0d00143faa23685ed243b93d0 (patch)
tree1326d3d1062be886ff9053b5f5552f5f28133f13 /etc
parent24f76a63f4cb4b28d4fba2a2d9f9c0b71ca5023f (diff)
downloadpfsense-474c7b044053a0d0d00143faa23685ed243b93d0.zip
pfsense-474c7b044053a0d0d00143faa23685ed243b93d0.tar.gz
Show the name of the unresolvable alias name as well as the rule description to avoid ambiguity.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 274d0bb..6394e6a 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2167,12 +2167,14 @@ function filter_generate_user_rule($rule) {
/* check for unresolvable aliases */
if($rule['source']['address'] && !alias_expand($rule['source']['address'])) {
- file_notice("Filter_Reload", "# unresolvable source aliases {$rule['descr']}");
- return "# unresolvable source aliases {$rule['descr']}";
+ $error_text = "Unresolvable source alias '{$rule['source']['address']}' for rule '{$rule['descr']}'";
+ file_notice("Filter_Reload", $error_text);
+ return "# {$error_text}";
}
if($rule['destination']['address'] && !alias_expand($rule['destination']['address'])) {
- file_notice("Filter_Reload", "# unresolvable dest aliases {$rule['descr']}");
- return "# unresolvable dest aliases {$rule['descr']}";
+ $error_text = "Unresolvable destination alias '{$rule['destination']['address']}' for rule '{$rule['descr']}'";
+ file_notice("Filter_Reload", $error_text);
+ return "# {$error_text}";
}
update_filter_reload_status("Setting up pass/block rules");
$type = $rule['type'];
OpenPOWER on IntegriCloud