diff options
author | Eric Wong <e@80x24.org> | 2017-05-09 06:30:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-05-09 20:25:20 +0000 |
commit | 1c9be46742295e943f7d919ee01ecbf134cbf493 (patch) | |
tree | 8186ffec96827164b59806a37ff5f7f17075dae1 /lib | |
parent | c29b32f38fc45e2a09ee0c9bcb9745a3dd1be5d0 (diff) | |
download | public-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.pm | 2 |
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; } |