Skip to content

Commit

Permalink
#837: Changed type of exception (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingAmeise authored Dec 5, 2024
1 parent 4ca0d07 commit d439c2d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.List;
import java.util.Objects;

import com.devonfw.tools.ide.cli.CliException;
import com.devonfw.tools.ide.context.IdeContext;
import com.devonfw.tools.ide.process.ProcessContext;
import com.devonfw.tools.ide.process.ProcessErrorHandling;
Expand Down Expand Up @@ -241,7 +242,7 @@ private void verifyGitInstalled() {
Path binaryGitPath = this.context.getPath().findBinary(git);
if (git == binaryGitPath) {
String message = "Could not find a git installation. We highly recommend installing git since most of our actions require git to work properly!";
throw new IllegalStateException(message);
throw new CliException(message);
}
this.context.trace("Git is installed");
}
Expand Down

0 comments on commit d439c2d

Please sign in to comment.