From 873ce10ced4e895ce6ff7377df22dd29ad4ea228 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Fri, 12 Sep 2014 11:50:51 +0200 Subject: [PATCH] permanent-anchors.pl: report page deletion status Make sure the status is returned if page deletion fails. --- modules/permanent-anchors.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }