http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73307
Revision: 73307
Author: ialex
Date: 2010-09-19 09:00:47 +0000 (Sun, 19 Sep 2010)
Log Message:
-----------
Also add the error message to the output
Modified Paths:
--------------
trunk/extensions/Farmer/MediaWikiFarmer.php
Modified: trunk/extensions/Farmer/MediaWikiFarmer.php
===================================================================
--- trunk/extensions/Farmer/MediaWikiFarmer.php 2010-09-19 08:48:52 UTC (rev
73306)
+++ trunk/extensions/Farmer/MediaWikiFarmer.php 2010-09-19 09:00:47 UTC (rev
73307)
@@ -363,7 +363,7 @@
try {
$db = wfGetDB( $type, array(), $this->_databaseName );
} catch ( DBConnectionError $e ) {
- throw new MWException( __METHOD__ . ": impossible to
connect to {$this->_databaseName} to get farm configuration." );
+ throw new MWException( __METHOD__ . ": impossible to
connect to {$this->_databaseName} to get farm configuration: " .
$e->getMessage() );
}
return $db;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs