* [PATCH] nntp: better delimit error message
@ 2015-10-02 1:55 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-10-02 1:55 UTC (permalink / raw)
To: meta
It may be hard to tell what command triggered an error,
otherwise.
---
lib/PublicInbox/NNTP.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 000b2c6..944e930 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;
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-10-02 1:55 7% [PATCH] nntp: better delimit error message Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).