diff options
author | Eric Wong <e@yhbt.net> | 2020-05-06 00:40:45 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-05-06 00:40:45 +0000 |
commit | 2e168e869df3f1ca88f2eb22a8d1a1dda869b6ef (patch) | |
tree | 0b4c400c3f4bf7a02562758ab4af4bc81fab500c /lib | |
parent | 3a5649ffced3f29e3bbc3ea4b539a28972eb36a9 (diff) | |
download | public-inbox-2e168e869df3f1ca88f2eb22a8d1a1dda869b6ef.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Git.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 ($) { |