From 506d923e7c1e7a6d06467a35b8af3804ca5767d3 Mon Sep 17 00:00:00 2001 From: Dmitry Tarasov Date: Thu, 22 Jan 2015 11:26:25 +0300 Subject: [PATCH 1/2] #3663 fix error message for config command --- src/Composer/Command/ConfigCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 4d52c8473..9d27464b5 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("File '$configFile' cannot be found in the current directory"); } } From e047ca994448d319952a1639b86e4d521f724dfd Mon Sep 17 00:00:00 2001 From: Dmitry Tarasov Date: Fri, 23 Jan 2015 10:52:53 +0300 Subject: [PATCH 2/2] #3665 fix exception message coding style --- src/Composer/Command/ConfigCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 9d27464b5..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("File '$configFile' cannot be found in the current directory"); + throw new \RuntimeException(sprintf('File "%s" cannot be found in the current directory', $configFile)); } }