Remove MediaWiki mentions from /rdbms error strings
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 19:50:34 +0000 (12:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Sep 2016 19:23:18 +0000 (19:23 +0000)
Change-Id: Ia330d8e465641d04e5d22a24490d792913f1ccb8

includes/libs/rdbms/exception/DBError.php

index 38887cf..544da5f 100644 (file)
@@ -110,9 +110,8 @@ class DBQueryError extends DBExpectedError {
                                "Function: $fname\n" .
                                "Error: $errno $error\n";
                } else {
-                       $message = "A database error has occurred. Did you forget to run " .
-                               "maintenance/update.php after upgrading?  See: " .
-                               "https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script\n" .
+                       $message = "A database query error has occurred. Did you forget to run " .
+                               "your application's database schema updater after upgrading? \n" .
                                "Query: $sql\n" .
                                "Function: $fname\n" .
                                "Error: $errno $error\n";
@@ -166,8 +165,7 @@ class DBUnexpectedError extends DBError {
  */
 class DBAccessError extends DBUnexpectedError {
        public function __construct() {
-               parent::__construct( "Mediawiki tried to access the database via wfGetDB(). " .
-                       "This is not allowed, because database access has been disabled." );
+               parent::__construct( "Access to the database has been disabled." );
        }
 }