From bbec253bcd6cc8865c7d5aa31bd59ca8ff06ce29 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Tue, 29 Sep 2015 14:06:11 +0200 Subject: [PATCH] fix connection error message --- it/src/test/java/com/sonar/runner/it/JavaTest.java | 2 +- .../src/main/java/org/sonar/runner/impl/ServerConnection.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/it/src/test/java/com/sonar/runner/it/JavaTest.java b/it/src/test/java/com/sonar/runner/it/JavaTest.java index 2e82c64..1a8802c 100644 --- a/it/src/test/java/com/sonar/runner/it/JavaTest.java +++ b/it/src/test/java/com/sonar/runner/it/JavaTest.java @@ -237,7 +237,7 @@ public class JavaTest extends RunnerTestCase { // expect build failure assertThat(result.getStatus()).isNotEqualTo(0); // with the following message - assertThat(result.getLogs()).contains("ERROR: Sonar server 'http://foo' can not be reached"); + assertThat(result.getLogs()).contains("server 'http://foo' can not be reached"); } // SONARPLUGINS-3574 diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java b/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java index dce9180..8f24f1f 100644 --- a/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java +++ b/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java @@ -39,7 +39,7 @@ import org.sonar.home.cache.PersistentCache; class ServerConnection { - private static final String SONAR_SERVER_CAN_NOT_BE_REACHED = "Sonar server ''{0}'' can not be reached"; + private static final String SONAR_SERVER_CAN_NOT_BE_REACHED = "SonarQube server ''{0}'' can not be reached"; private static final String STATUS_RETURNED_BY_URL_IS_INVALID = "Status returned by url : ''{0}'' is invalid : {1}"; static final int CONNECT_TIMEOUT_MILLISECONDS = 5000; static final int READ_TIMEOUT_MILLISECONDS = 60000; -- 2.39.5