Skip to contentSkip to conversation

Improve POM error message

PATCH Wang Jian 2 participants 2 messages Mar 30, 2005 – Apr 1, 2005 netfilter

lore
Share & tools
lore

Wang Jian

author
#0 lore raw

Hi,

Here is a one liner patch agains Netfilter_POM.pm which improves error message. This patch will give more clear information in the situation that there are multiple lineadd files for a single file.

Netfilter_POM.pm (working copy) renamed from Netfilter_POM.pm (revision 3808) +1 -1
Index: Netfilter_POM.pm
===================================================================
@@ -630,7 +630,7 @@
        close(SRC);
                
        if ($found == 0) {
-               $self->{ERRMSG} .= "unable to find ladd slot in src $srcfile\n";
+               $self->{ERRMSG} .= "unable to find ladd slot in src $srcfile ($laddfile)\n";
                return 0;
        } elsif (!$test && $found == -1) {
                $self->{ERRMSG} .= "unable to find all to-be-removed lines in $srcfile\n";
Signature · 1 line
  lark
#1 lore raw
Quoted 5 lines · Wang Jian

Hi,

Here is a one liner patch agains Netfilter_POM.pm which improves error message. This patch will give more clear information in the situation that there are multiple lineadd files for a single file.

thanks, patch applied.

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie