Show the line number that is invalid

This commit is contained in:
Jamie Cameron
2025-02-11 20:21:38 -08:00
parent 9a7f6f2255
commit 415868c94f
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ while(<FILE>) {
$table->{'eline'} = $lnum;
}
elsif (/\S/) {
&error(&text('eiptables', "<tt>$_</tt>"));
&error(&text('eiptables2', "<tt>$_</tt>", $lnum+1));
}
$lnum++;
if (! defined($read_comment)) { $cmt=undef; }

View File

@ -160,8 +160,8 @@ redhat_eoutput=An error occured getting IPtables status from the command $1. Thi
gentoo_escript=The Gentoo IPtables startup script $1 was not found on your system.
eiptables=Unknown IPtables save file line : $1
eip6tables=Unknown IP6tables save file line : $1
eiptables2=Unknown IPtables save file entry at line $2 : $1
eip6tables2=Unknown IP6tables save file entry at line $2 : $1
edit_title1=Add Rule
edit_title2=Edit Rule