Skip to content

Commit

Permalink
Added error message for skipped package version
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Sep 21, 2017
1 parent dc02366 commit 5e99eff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Repository/NpmRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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("<warning>Skipped {$config['name']} version {$version}: {$exception->getMessage()}</warning>", IOInterface::VERBOSE);
continue;
} catch (\Exception $exception) {
throw $exception;
Expand Down

0 comments on commit 5e99eff

Please sign in to comment.