Modified exception message

This commit is contained in:
Vyacheslav Agafonov
2011-12-01 17:37:47 +04:00
parent 8aba4dc172
commit 8cad3720bc

View File

@ -37,7 +37,7 @@ class Db
if (!isset(self::$connections[$name])) {
if (!$config) {
if (gettype(Config::get(__CLASS__)) != 'object') {
throw new InitializationException('config no object');
throw new InitializationException('Trying to get property of non-object');
}
$config = Config::get(__CLASS__)->$name;
}