r73307 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73306‎ | r73307 | r73308 >
Date:09:00, 19 September 2010
Author:ialex
Status:ok
Tags:
Comment:
Also add the error message to the output
Modified paths:
  • /trunk/extensions/Farmer/MediaWikiFarmer.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Farmer/MediaWikiFarmer.php
@@ -363,7 +363,7 @@
364364 try {
365365 $db = wfGetDB( $type, array(), $this->_databaseName );
366366 } catch ( DBConnectionError $e ) {
367 - throw new MWException( __METHOD__ . ": impossible to connect to {$this->_databaseName} to get farm configuration." );
 367+ throw new MWException( __METHOD__ . ": impossible to connect to {$this->_databaseName} to get farm configuration: " . $e->getMessage() );
368368 }
369369 return $db;
370370 }

Status & tagging log