diff --git a/modules/permanent-anchors.pl b/modules/permanent-anchors.pl index f14b8bd4..a5766535 100644 --- a/modules/permanent-anchors.pl +++ b/modules/permanent-anchors.pl @@ -167,7 +167,8 @@ anchors. *DeletePage = *NewPermanentAnchorsDeletePage; sub NewPermanentAnchorsDeletePage { - OldPermanentAnchorsDeletePage(@_); + my $status = OldPermanentAnchorsDeletePage(@_); + return $status if $status; # this would be the error message DeletePermanentAnchors(@_); # the only parameter is $id }