- Added some more info on a bad connection error
This commit is contained in:
1 parent
2a03789e7c
commit
2d86adc3e1
2 files changed
+4
-4
No files matched your search
@@ -27,6 +27,10 @@ class ConnectionAdapter
|
||||
$connection = $this->configuration['connections'][$this->name] ?? [];
|
||||
|
||||
if ( false !== ( $adapterName = $connection['adapter'] ?? false ) ) {
|
||||
if (is_array($adapterName)) {
|
||||
throw new \InvalidArgumentException(sprintf("Given adapter (%s) name is an array, not a string.. received : %s.", $this->name, json_encode($adapterName)));
|
||||
}
|
||||
|
||||
$this->adapter = $this->instanciateAdapter($adapterName);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user