about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-05-09 06:30:41 +0000
committerEric Wong <e@80x24.org>2017-05-09 20:25:20 +0000
commit1c9be46742295e943f7d919ee01ecbf134cbf493 (patch)
tree8186ffec96827164b59806a37ff5f7f17075dae1 /lib
parentc29b32f38fc45e2a09ee0c9bcb9745a3dd1be5d0 (diff)
downloadpublic-inbox-1c9be46742295e943f7d919ee01ecbf134cbf493.tar.gz
umask should never fail and set $@, but use the cached local
to be more explicit just in case.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/SearchIdx.pm2
1 files changed, 1 insertions, 1 deletions
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;
 }