diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 4d52c8473..c65afdb7d 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -137,7 +137,7 @@ EOT } if (!$this->configFile->exists()) { - throw new \RuntimeException('No composer.json found in the current directory'); + throw new \RuntimeException(sprintf('File "%s" cannot be found in the current directory', $configFile)); } }