Skip to content

Commit c57e636

Browse files
authored
fix: distribution not found exit code (#901)
1 parent 0259427 commit c57e636

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/crowdin/cli/commands/actions/DistributionEditAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void act(Outputter out, ProjectProperties pb, ClientDistribution client)
6060
.findFirst();
6161

6262
if (foundDistribution.isEmpty()) {
63-
throw new ExitCodeExceptionMapper.ValidationException(String.format(RESOURCE_BUNDLE.getString("error.distribution.not_found"), hash));
63+
throw new ExitCodeExceptionMapper.NotFoundException(String.format(RESOURCE_BUNDLE.getString("error.distribution.not_found"), hash));
6464
}
6565
String existingExportMode = foundDistribution.get().getExportMode();
6666

src/main/java/com/crowdin/cli/commands/actions/DistributionReleaseAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void act(Outputter out, ProjectProperties pb, ClientDistribution client)
3838
.findFirst();
3939

4040
if (foundDistribution.isEmpty()) {
41-
throw new ExitCodeExceptionMapper.ValidationException(String.format(RESOURCE_BUNDLE.getString("error.distribution.not_found"), hash));
41+
throw new ExitCodeExceptionMapper.NotFoundException(String.format(RESOURCE_BUNDLE.getString("error.distribution.not_found"), hash));
4242
}
4343

4444
CrowdinProjectInfo project = ConsoleSpinner.execute(

0 commit comments

Comments
 (0)