get error message for connection failed

This commit is contained in:
jayvirsinh_gohil
2019-12-04 12:22:23 +05:30
parent 37f2b6dfc7
commit c8843eb544

View File

@ -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();
} }
} }
} }