summaryrefslogtreecommitdiff
path: root/lib/sbin/interface_parser.pl
diff options
context:
space:
mode:
authorrideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-01-07 21:21:42 +0000
committerrideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-01-07 21:21:42 +0000
commit3c796902983ae5719eea791fd7322a185125ce71 (patch)
tree79c480b4e8ed98e4cf993211c8f5b03e7719d5b8 /lib/sbin/interface_parser.pl
parent17f6853c047a2d61a6b7cbc3c332646b9b424eab (diff)
Add helpful comment to 'Unknown option $option in group
$current_group...' error message. Add a few commented lines for debuging. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3081 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/interface_parser.pl')
-rw-r--r--lib/sbin/interface_parser.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sbin/interface_parser.pl b/lib/sbin/interface_parser.pl
index c02be57c..567fb7cc 100644
--- a/lib/sbin/interface_parser.pl
+++ b/lib/sbin/interface_parser.pl
@@ -816,6 +816,10 @@ sub parse_interface_ccl
my $grouparray_size = $6;
my $options_list = $7;
+# print "line is [$line]\n";
+# print "group name is [$current_group]\n";
+# print "options list is [$options_list]\n";
+
if($known_groups{"\U$current_group\E"})
{
$message = "Duplicate group $current_group in thorn $thorn";
@@ -907,7 +911,7 @@ sub parse_interface_ccl
}
else
{
- $message = "Unknown option $option in group $current_group of thorn $thorn";
+ $message = "Unknown option $option in group $current_group of thorn $thorn\n Perhaps you forgot a '\\' at the end of a continued line?";
&CST_error(0,$message,"",__LINE__,__FILE__);
}
}