permanent-anchors.pl: report page deletion status

Make sure the status is returned if page deletion fails.
This commit is contained in:
Alex Schroeder
2014-09-12 11:50:51 +02:00
parent 3855c83a7e
commit 873ce10ced

View File

@@ -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
}