Trim exception message in database manager.
This commit is contained in:
parent
1b053815d3
commit
a6bb5f26a3
|
@ -38,7 +38,7 @@ public static function connection($connection = null)
|
||||||
|
|
||||||
if (is_null($config))
|
if (is_null($config))
|
||||||
{
|
{
|
||||||
throw new \OutOfBoundsException("Database connection is not defined for connection [$connection].");
|
throw new \OutOfBoundsException("Connection is not defined for [$connection].");
|
||||||
}
|
}
|
||||||
|
|
||||||
static::$connections[$connection] = new Connection(static::connect($config), $config);
|
static::$connections[$connection] = new Connection(static::connect($config), $config);
|
||||||
|
@ -131,4 +131,4 @@ public static function __callStatic($method, $parameters)
|
||||||
return call_user_func_array(array(static::connection(), $method), $parameters);
|
return call_user_func_array(array(static::connection(), $method), $parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue