Commit 5312be4a authored by Phillip Webb's avatar Phillip Webb

Fix CLI package tangle

Remove explicit TestFailedException catch in CommandRunner and instead
rely on the fact that TestFailedException extends CommandException.

Fixes gh-3167
parent 105039cd
...@@ -25,7 +25,6 @@ import java.util.List; ...@@ -25,7 +25,6 @@ import java.util.List;
import java.util.Set; import java.util.Set;
import org.springframework.boot.cli.command.status.ExitStatus; import org.springframework.boot.cli.command.status.ExitStatus;
import org.springframework.boot.cli.command.test.TestFailedException;
import org.springframework.boot.cli.util.Log; import org.springframework.boot.cli.util.Log;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
...@@ -180,9 +179,6 @@ public class CommandRunner implements Iterable<Command> { ...@@ -180,9 +179,6 @@ public class CommandRunner implements Iterable<Command> {
showUsage(); showUsage();
return 1; return 1;
} }
catch (TestFailedException e) {
return 1;
}
catch (Exception ex) { catch (Exception ex) {
return handleError(debug, ex); return handleError(debug, ex);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment