wildfly/wildfly — pull request #6392 by soul2zimate (2014-06-17 07:07:42+00:00)
Title: [WFLY-3508][BZ1104730], add parameter StateValues for new ErrorState.

https://issues.jboss.org/browse/WFLY-3508
add parameter StateValues for new ErrorState in order to throw proper exception from ErrorState.java:
// Throw an exception if the mode is non-interactive and there's no next state.
if ((stateValues != null && !stateValues.isInteractive()) && nextState == null) {
throw new AddUserFailedException(errorMessage);
}
Thus, we can obtain expected exit code 1, otherwise stateValues is null by default