Fix CLI package tangle
Remove explicit TestFailedException catch in CommandRunner and instead rely on the fact that TestFailedException extends CommandException. Fixes gh-3167
This commit is contained in:
parent
105039cdb2
commit
5312be4a25
|
@ -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> {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue