From 0efc66d9686f1fae77e51ff93a23daeb3fc357e8 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 26 Mar 2017 13:43:05 +0200 Subject: [PATCH] Tweak message --- src/Composer/Util/ConfigValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/ConfigValidator.php b/src/Composer/Util/ConfigValidator.php index 667d2a681..ecc035150 100644 --- a/src/Composer/Util/ConfigValidator.php +++ b/src/Composer/Util/ConfigValidator.php @@ -86,7 +86,7 @@ class ConfigValidator $licenseValidator = new SpdxLicenses(); if ('proprietary' !== $manifest['license'] && array() !== $manifest['license'] && !$licenseValidator->validate($manifest['license']) && $licenseValidator->validate(trim($manifest['license']))) { $warnings[] = sprintf( - 'Trim the license identifier (remove useless spaces, etc).', + 'License %s must not contain extra spaces, make sure to trim it.', json_encode($manifest['license']) ); } else if ('proprietary' !== $manifest['license'] && array() !== $manifest['license'] && !$licenseValidator->validate($manifest['license'])) {