Skip to content

Commit

Permalink
Let's be less strict on the database
Browse files Browse the repository at this point in the history
Prefer an error during assistant because database is not ready than
throwing an error because the assistant couldn't detect the database.
  • Loading branch information
rsanzante committed Sep 13, 2023
1 parent 9c5b3e0 commit ffe7572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Composer/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ protected function waitDatabase() {
$count--;
}

throw new \Exception('Timeout waiting for the database container to be ready');
// Let's hope the detection process failed.
$this->io->write("Could not detect if database is ready, trying to continue hoping it is ready");
}

/**
Expand Down

0 comments on commit ffe7572

Please sign in to comment.