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