From 1c9be46742295e943f7d919ee01ecbf134cbf493 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 9 May 2017 06:30:41 +0000 Subject: [PATCH] searchidx: use cached local $@ copy umask should never fail and set $@, but use the cached local to be more explicit just in case. --- lib/PublicInbox/SearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index e4e3c81b..fd0d320e 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -620,7 +620,7 @@ sub with_umask { my $rv = eval { $cb->() }; my $err = $@; umask $old; - die $err if $@; + die $err if $err; $rv; } -- 2.44.0