diff options
author | Eric Wong <e@80x24.org> | 2024-03-08 21:05:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-03-10 21:36:00 +0000 |
commit | 58bcb92af35425daa6e809712b7c4aa8d7cbe011 (patch) | |
tree | f84a08b870f3d7d30b17ec8da74548c7684bde8a | |
parent | 003829cdaa583d66c5af7564296d266952e0f12f (diff) | |
download | public-inbox-58bcb92af35425daa6e809712b7c4aa8d7cbe011.tar.gz |
This allows accurate reporting of the error location and can be made to dump a Perl backtrace via PERL5OPT='-MCarp=verbose'. Noticed while tracking down fast-import failures. Link: https://public-inbox.org/meta/CAL_JsqK7P4gjLPyvzxNEcYmxT4j6Ah5f3Pz1RqDHxmysTg3aEg@mail.gmail.com/
-rw-r--r-- | lib/PublicInbox/Import.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 51ddfa7f..a951874b 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -85,7 +85,7 @@ sub gfi_start { $self->{io}; } -sub wfail () { die "write to fast-import failed: $!" } +sub wfail () { croak "write to fast-import failed: $!" } sub now_raw () { time . ' +0000' } |