Skip to content

Commit

Permalink
CH-110 improve output on error
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Sep 13, 2024
1 parent 1ddd023 commit 97ff173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/deployment-cli-tools/ch_cli_tools/dockercompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def generate_docker_compose_yaml(self):

res = subprocess.call(command, shell=True)
if res != 0:
out = subprocess.check_output(["ntpq", "-p"])
raise Exception(f"Error generating docker-compose.yaml.\n{out}\n\nSee above output for details or try run\n\n{command} --debug")
out = subprocess.check_output(f"{command} --debug", shell=True, stderr=subprocess.STDOUT)
raise Exception(f"Error generating docker-compose.yaml.\n{out}\n\nSee above output for details")

self.__post_process_multiple_document_docker_compose(dest_compose_yaml)

Expand Down

0 comments on commit 97ff173

Please sign in to comment.