From: Eric Wong Date: Thu, 1 Oct 2015 23:31:13 +0000 (+0000) Subject: nntp: better delimit error message X-Git-Tag: v1.0.0~803 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=27eb19dc79041b284d1eeb730e9c4d0827835da7;p=public-inbox.git nntp: better delimit error message It may be hard to tell what command triggered an error, otherwise. --- diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 000b2c61..944e9305 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -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;