mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
get error message for connection failed
This commit is contained in:
@ -51,7 +51,7 @@ class EnvironmentManager
|
|||||||
if (! $this->checkDatabaseConnection($request)) {
|
if (! $this->checkDatabaseConnection($request)) {
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'error' => 'connection_failed'
|
'error' => $this->checkDatabaseConnection($request)
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
if(\Schema::hasTable('users') ) {
|
if(\Schema::hasTable('users') ) {
|
||||||
@ -321,7 +321,7 @@ class EnvironmentManager
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return false;
|
return $e->getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user