From 2e168e869df3f1ca88f2eb22a8d1a1dda869b6ef Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 6 May 2020 00:40:45 +0000 Subject: [PATCH] git: warn on ->cat_async callback errors This will help us track down bugs in our own code when it comes to missing error checking. --- lib/PublicInbox/Git.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 057135ef..8426cc7d 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -147,6 +147,7 @@ sub _cat_async_step ($$) { my ($oid_hex, $type, $size) = ($1, $2, $3 + 0); my $bref = read_cat_in_full($self, $size); eval { $cb->($bref, $oid_hex, $type, $size, $arg) }; + warn "E: $oid_hex $@\n" if $@; } sub cat_async_wait ($) { -- 2.44.0