Fix error reporting in MovePage
authorGergő Tisza <tgr.huwiki@gmail.com>
Thu, 17 Jan 2019 02:14:52 +0000 (18:14 -0800)
committerGergő Tisza <tgr.huwiki@gmail.com>
Thu, 17 Jan 2019 02:14:52 +0000 (18:14 -0800)
Bug: T210739
Change-Id: I8f6c9647ee949b33fd4daeae6aed6b94bb1988aa

includes/MovePage.php

index 452b144..7aa6b05 100644 (file)
@@ -494,7 +494,7 @@ class MovePage {
                        );
 
                        if ( !$status->isGood() ) {
-                               throw new MWException( 'Failed to delete page-move revision: ' . $status );
+                               throw new MWException( 'Failed to delete page-move revision: ' . $status->getWikiText() );
                        }
 
                        $nt->resetArticleID( false );