]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdx.pm
searchidx: add PID to error message when die-ing
[public-inbox.git] / 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;