diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-18 16:55:35 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-18 17:57:36 +0100 |
commit | fbbf0d48b0d922112ba405bee7da94eae0fd4194 (patch) | |
tree | 1087607d696f33d4b496ee68531b66be430730a8 /sonar-batch | |
parent | 785da30e37911001764c09cc78835c969849a06e (diff) | |
download | sonarqube-fbbf0d48b0d922112ba405bee7da94eae0fd4194.tar.gz sonarqube-fbbf0d48b0d922112ba405bee7da94eae0fd4194.zip |
SONAR-5094 Change error message when quality gate is not found
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java index 5a8cbc98f89..e2e298f2fd1 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java @@ -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; } |