We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14efd9d commit eb18aa5Copy full SHA for eb18aa5
src/main/groovy/org/silverpeas/setup/api/JBossServer.groovy
@@ -78,12 +78,13 @@ class JBossServer {
78
}
79
80
private void assertCommandSucceeds(command) throws AssertionError, InvalidObjectException {
81
- if (command.exitValue() != 0) {
82
- String message = command.err.text
83
- if (!message) {
84
- throw new InvalidObjectException(command.in.text)
+ String message = command.in.text
+ if (command.exitValue() != 0 || message.contains('"outcome" => "failed"')) {
+ String error = command.err.text
+ if (!error) {
85
+ throw new InvalidObjectException(message)
86
- throw new AssertionError(message)
87
+ throw new AssertionError(error)
88
89
90
0 commit comments