Skip to content

Commit

Permalink
Refactor error handling in DbTestCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Oct 9, 2024
1 parent b806dd8 commit 0dbdc50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Commands/Db/DbTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ private function testConnection(\Illuminate\Database\Connection $connection): bo
$serverVersion = $pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
$connectionStatus = $pdo->getAttribute(\PDO::ATTR_CONNECTION_STATUS);
} catch (\Exception $e) {
$this->error($e->getMessage());
$this->error('Connection failed.');

return false;
Expand Down

0 comments on commit 0dbdc50

Please sign in to comment.