From: Eric Wong (Contractor, The Linux Foundation) Date: Fri, 2 Mar 2018 00:50:56 +0000 (+0000) Subject: searchidx: add PID to error message when die-ing X-Git-Tag: v1.1.0-pre1~202 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=66642eb8e5f51a675d699c4fe9107202d61d2626;p=public-inbox.git searchidx: add PID to error message when die-ing --- diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index f4238fe8..ec3a6f3e 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -837,7 +837,7 @@ sub remote_close { print $w "close\n" or die "failed to write to pid:$pid: $!\n"; close $w or die "failed to close pipe for pid:$pid: $!\n"; waitpid($pid, 0) == $pid or die "remote process did not finish"; - $? == 0 or die ref($self)." exited with: $?"; + $? == 0 or die ref($self)." pid:$pid exited with: $?"; } 1;