Skip to content

Commit

Permalink
Throw both error and out streams outputs in case of error - closes #383
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed Apr 17, 2023
1 parent 3a3c3dd commit 9d47a42
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1342,9 +1342,7 @@ private CommandResult executeCommand(final Commandline cmd, final boolean failOn

if (failOnError && exitCode != SUCCESS_EXIT_CODE) {
// not all commands print errors to error stream
if (StringUtils.isBlank(errorStr) && StringUtils.isNotBlank(outStr)) {
errorStr = outStr;
}
errorStr += LS + outStr;

throw new MojoFailureException(errorStr);
}
Expand Down

0 comments on commit 9d47a42

Please sign in to comment.