1
0
Fork 0

Improve error reporting when loading artifact repos

pull/5037/head
Jordi Boggiano 2016-03-10 16:31:09 +00:00
parent e8abc90b92
commit 8bf46768f3
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
'shasum' => sha1_file($file->getRealPath()),
);
$package = $this->loader->load($package);
try {
$package = $this->loader->load($package);
} catch (\UnexpectedValueException $e) {
throw new \UnexpectedValueException('Failed loading package in '.$file.': '.$e->getMessage(), 0, $e);
}
return $package;
}