]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidx: add PID to error message when die-ing
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 2 Mar 2018 00:50:56 +0000 (00:50 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 2 Mar 2018 00:50:56 +0000 (00:50 +0000)
lib/PublicInbox/SearchIdx.pm

index f4238fe8d5380aa1c2eecaaab0d01209b3418650..ec3a6f3ea928dfb64921be7e89ca1e3b7b3e4aad 100644 (file)
@@ -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;