From 61d1ba43f6c999dcd816a0fffaea5ac50f4df50a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 19 Mar 2022 22:32:42 -0700 Subject: notmuch-slurp-debbug: die if Mail::Box::Manager::open fails Signed-off-by: Sean Whitton --- notmuch-slurp-debbug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'notmuch-slurp-debbug') diff --git a/notmuch-slurp-debbug b/notmuch-slurp-debbug index ad0db47..0130470 100755 --- a/notmuch-slurp-debbug +++ b/notmuch-slurp-debbug @@ -54,7 +54,7 @@ $maildir = $mgr->open( access => "a", keep_dups => 1, type => "maildir" -); +) or die "failed to open target maildir: $!\n"; # we use bts(1) to download the mbox because it has some logic to find # the right URI and the user might have enabled its caching features. @@ -72,7 +72,7 @@ my $mbox = $mgr->open( access => "r", keep_dups => 1, type => "mbox" -); +) or die "failed to open $bug.mbox: $!\n"; foreach my $message ($mbox->messages) { my $mid = $message->messageId; -- cgit v1.2.3