Skip to content

Commit

Permalink
Merge pull request #47 from palantir/feature/better-docker-compose-ex…
Browse files Browse the repository at this point in the history
…ecution-exeception-message

Put `docker-compose` output directly into exception message
  • Loading branch information
joelea committed Apr 8, 2016
2 parents 1357e92 + 9f9b1bc commit 36d3038
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public Ports ports(String service) throws IOException, InterruptedException {

private ErrorHandler throwingOnError() {
return (exitCode, output, commands) -> {
log.warn(constructNonZeroExitErrorMessage(exitCode, commands));
log.warn("The output was:");
log.warn(output);
throw new DockerComposeExecutionException(constructNonZeroExitErrorMessage(exitCode, commands));
String message = constructNonZeroExitErrorMessage(exitCode, commands) + "\n"
+ "The output was:\n"
+ output;
throw new DockerComposeExecutionException(message);
};
}

Expand Down

0 comments on commit 36d3038

Please sign in to comment.