]> Sergey Matveev's repositories - public-inbox.git/commitdiff
nntp: better delimit error message
authorEric Wong <e@80x24.org>
Thu, 1 Oct 2015 23:31:13 +0000 (23:31 +0000)
committerEric Wong <e@80x24.org>
Thu, 1 Oct 2015 23:31:13 +0000 (23:31 +0000)
It may be hard to tell what command triggered an error,
otherwise.

lib/PublicInbox/NNTP.pm

index 000b2c6140cb8a3c4e7dbdd3550a08ffd12e971d..944e9305da525545d348d4bca4fd78f9d178def2 100644 (file)
@@ -114,7 +114,7 @@ sub process_line ($$) {
        my $err = $@;
        if ($err && !$self->{closed}) {
                chomp($l = Dumper(\$l));
-               err($self, "error from: $l $err");
+               err($self, "error from: $l ($err)");
                $res = '503 program fault - command not performed';
        }
        return 0 unless defined $res;