Skip to content

Commit

Permalink
Call CORE::die, not App::Ack::die
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Nov 30, 2024
1 parent a4f4e24 commit 316de3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/Ack.pm
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ sub build_regex {
}
else {
# Compile the regex to see if it dies or throws warnings.
local $SIG{__WARN__} = sub { App::Ack::die @_ }; # Anything that warns becomes a die.
local $SIG{__WARN__} = sub { CORE::die @_ }; # Anything that warns becomes a die.
my $scratch_regex = eval { qr/$str/ };
if ( not $scratch_regex ) {
my $err = $@;
Expand Down

0 comments on commit 316de3b

Please sign in to comment.