3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Refresher: ignore more types of redefined subroutines

This commit is contained in:
Pragmatic Software 2020-02-16 16:12:31 -08:00
parent f067723c4a
commit a63a5308d5

View File

@ -29,7 +29,7 @@ sub refresh {
local $SIG{__WARN__} = sub {
my $warning = shift;
warn $warning and return if $warning =~ /Can't undef active/;
warn $warning and return if $warning =~ /Subroutine \w+ redefined/;
warn $warning and return if $warning =~ /subroutine .* redefined/i;
$refresh_error = $warning;
$refresh_error =~ s/\s+Compilation failed in require at \/usr.*//;
$refresh_error =~ s/in \@INC.*/in \@INC/;