From 27eb19dc79041b284d1eeb730e9c4d0827835da7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 1 Oct 2015 23:31:13 +0000 Subject: nntp: better delimit error message It may be hard to tell what command triggered an error, otherwise. --- lib/PublicInbox/NNTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/NNTP.pm') 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; -- cgit v1.2.3-24-ge0c7