aboutsummaryrefslogtreecommitdiffstats
path: root/includes/page/MovePage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/page/MovePage.php')
-rw-r--r--includes/page/MovePage.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/page/MovePage.php b/includes/page/MovePage.php
index bfb84d2ff501..800831329a13 100644
--- a/includes/page/MovePage.php
+++ b/includes/page/MovePage.php
@@ -50,6 +50,7 @@ use MediaWiki\User\UserIdentity;
use MWException;
use RepoGroup;
use RequestContext;
+use RuntimeException;
use StringUtils;
use WatchedItemStoreInterface;
use Wikimedia\Rdbms\IConnectionProvider;
@@ -976,7 +977,8 @@ class MovePage {
$msg = 'Failed to create null revision while moving page ID ' .
$oldid . ' to ' . $nt->getPrefixedDBkey() . " (page ID $id)";
- throw new MWException( $msg );
+ // XXX This should be handled more gracefully
+ throw new RuntimeException( $msg );
}
$nullRevision = $this->revisionStore->insertRevisionOn( $nullRevision, $dbw );