Skip to content

Commit 24da182

Browse files
Issue #39: Fix unhandled promise rejection. Test on PHP 8.2 and 8.3.
1 parent db74083 commit 24da182

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
matrix:
2121
php-versions:
2222
- '8.1'
23+
- '8.2'
24+
- '8.3'
2325
drupal-release:
2426
- 'stable'
2527
composer-channel:

src/FileFetcher.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ public function fetch(array $drupal_projects, $destination) {
104104
$this->io->write(" - <info>$filename</info> (<comment>$url</comment>): ", FALSE);
105105
}
106106

107+
// Test that the file exists before trying to copy it.
108+
$this->httpDownloader->get($url);
107109
$this->httpDownloader->copy($url, $destination . '/' . $filename);
108110

109111
if ($this->progress) {

0 commit comments

Comments
 (0)