diff --git a/Repository/NpmRepository.php b/Repository/NpmRepository.php index cad04ece..3019e639 100644 --- a/Repository/NpmRepository.php +++ b/Repository/NpmRepository.php @@ -12,6 +12,7 @@ namespace Fxp\Composer\AssetPlugin\Repository; use Composer\DependencyResolver\Pool; +use Composer\IO\IOInterface; use Composer\Package\CompletePackageInterface; use Composer\Package\Loader\ArrayLoader; use Composer\Repository\ArrayRepository; @@ -155,6 +156,7 @@ protected function createArrayRepositoryConfig(array $packageConfigs) } catch (\UnexpectedValueException $exception) { // Most probably version constraint is broken. // Skip this version and hope that another one will be OK + $this->io->write("Skipped {$config['name']} version {$version}: {$exception->getMessage()}", IOInterface::VERBOSE); continue; } catch (\Exception $exception) { throw $exception;