1
0
Fork 0

Rethrow path repo init failures with path information, closes #10845

pull/10897/head
Jordi Boggiano 2022-06-22 13:30:39 +02:00
parent 5c68c2c86d
commit 5730c24c92
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 1 deletions

View File

@ -213,7 +213,11 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
} }
} }
$this->addPackage($this->loader->load($package)); try {
$this->addPackage($this->loader->load($package));
} catch (\Exception $e) {
throw new \RuntimeException('Failed loading the package in '.$composerFilePath, 0, $e);
}
} }
} }