Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r16758 -r16768 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16758) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16768) @@ -1,6 +1,6 @@ errorHandler, $this->errorCode, $this->errorMessage, $sql); + $error_msg = $this->errorMessage; + + // Specify slave servers or nothing for master/single database setups. + if ( $this->serverIndex ) { + $error_msg = '[Server #' . $this->serverIndex . '] ' . $error_msg; + } + + return call_user_func( + $this->errorHandler, + $this->errorCode, + $error_msg, + $sql + ); } /**