From 685bc08c0a31bbfb2834adcd9a8d9095aef1c762 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 9 Nov 2017 13:04:07 +0100 Subject: [PATCH] Improve the error on init/require if a package could not be found --- src/Composer/Command/InitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 94ac109fc..421f6b772 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -641,7 +641,7 @@ EOT )); } throw new \InvalidArgumentException(sprintf( - 'Could not find package %s at any version for your minimum-stability (%s). Check the package spelling or your minimum-stability', + 'Could not find a matching version of package %s. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (%s).', $name, $this->getMinimumStability($input) ));