]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix error message when migration path is incorrect
authorAurelien <100427063+aurelien-poscia-sonarsource@users.noreply.github.com>
Tue, 31 Jan 2023 14:51:11 +0000 (15:51 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 31 Jan 2023 20:03:45 +0000 (20:03 +0000)
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java

index 144799f36fad78a568e591a1b6c5bd449ad1f135..c33501c288f11f9aebf3dca293b71a9ec3e75ef1 100644 (file)
@@ -52,7 +52,7 @@ public class DatabaseServerCompatibility implements Startable {
     if (status == DatabaseVersion.Status.REQUIRES_UPGRADE) {
       Optional<Long> currentVersion = this.version.getVersion();
       if (currentVersion.isPresent() && currentVersion.get() < DatabaseVersion.MIN_UPGRADE_VERSION) {
-        throw MessageException.of("Current version is too old. Please upgrade to Long Term Support version firstly.");
+        throw MessageException.of("The version of SonarQube is too old. Please upgrade to the Long Term Support version first.");
       }
       boolean blueGreen = configuration.getBoolean(ProcessProperties.Property.BLUE_GREEN_ENABLED.getKey()).orElse(false);
       if (!blueGreen) {
index af9c4be1fcb1c97456f2b28051bf0fa4825e3846..c0053e5c7be0d5475892f13bb95b8edf4c139898 100644 (file)
@@ -60,7 +60,7 @@ public class DatabaseServerCompatibilityTest {
     var compatibility = new DatabaseServerCompatibility(version, config);
     assertThatThrownBy(compatibility::start)
       .isInstanceOf(MessageException.class)
-      .hasMessage("Current version is too old. Please upgrade to Long Term Support version firstly.");
+      .hasMessage("The version of SonarQube is too old. Please upgrade to the Long Term Support version first.");
   }
 
   @Test