Skip to content

Commit

Permalink
Update wording of exception when installing server into non-empty folder
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrkob committed Oct 18, 2023
1 parent efe70c7 commit a376b5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public void candidateFolderHasToBeEmpty() throws Exception {
final SavedState savedState = revisions.get(1);
assertThatThrownBy(() -> historyAction.prepareRevert(savedState, mavenOptions, Collections.emptyList(), candidate))
.isInstanceOf(IllegalArgumentException.class)
.message().contains("Can't install into a non empty directory");
.message().contains("Can't install the server into a non empty directory");
}

private UpdateAction updateAction() throws ProvisioningException, OperationException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void candidateFolderHasToBeEmpty() throws Exception {
List.of(new Repository("temp", tempRepo.toExternalForm())))
.buildUpdate(candidateFolder))
.isInstanceOf(IllegalArgumentException.class)
.message().contains("Can't install into a non empty directory");
.message().contains("Can't install the server into a non empty directory");
}

private File upgradeTestArtifactIn(File manifestFile) throws IOException, MetadataException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public interface ProsperoLogger extends BasicLogger {
@Message(id = 202, value = "Invalid channel manifest definition")
ChannelDefinitionException invalidManifest(@Cause InvalidChannelMetadataException e);

@Message(id = 203, value = "Can't install into a non empty directory '%s'. Use `update` command if you want to modify existing installation.")
@Message(id = 203, value = "Can't install the server into a non empty directory '%s'.")
IllegalArgumentException cannotInstallIntoNonEmptyDirectory(Path path);

@Message(id = 204, value = "Installation dir '%s' doesn't exist")
Expand Down

0 comments on commit a376b5f

Please sign in to comment.