yiisoft/yii — pull request #2768 by rishav (2013-08-14 09:53:26+00:00)
Title: Include exception message in dbconnection failed to open scenario

A lot of times when this error happens. The message "CDbConnection failed to open the DB connection" is not enough for us to figure out the reason why it happened, especially in Production environments.

Different examples of reasons this error is thrown would be "Deadlocks", "Transaction wait timeouts" or "Too many connections".

Its a simple fix. Helps devs debug the problem faster.