]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5094 Change error message when quality gate is not found
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 18 Mar 2014 15:55:35 +0000 (16:55 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 18 Mar 2014 16:57:36 +0000 (17:57 +0100)
sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java

index 5a8cbc98f8956ef1527b50a8b4bcc3447a60bc9e..e2e298f2fd1a9f6925b89ba8e62ac6a83813cb81 100644 (file)
@@ -70,7 +70,7 @@ public class QualityGateProvider extends ProviderAdapter {
       configuredGate = fetch(qualityGateSetting, client, metricFinder);
     } catch (HttpDownloader.HttpException serverError) {
       if (serverError.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
-        throw MessageException.of("No quality gate found with configured value '" + qualityGateSetting + "'. Please check your configuration.");
+        throw MessageException.of("Quality gate '" + qualityGateSetting + "' was not found.");
       } else {
         throw serverError;
       }