Skip to content

Commit

Permalink
fix(update_openapi_client): print stderr if docker command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceone authored and dansan committed Nov 8, 2022
1 parent fb78eba commit d7bc03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_openapi_client
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def run_openapi_generator_docker_container(target_dir: str, quiet: bool, keep_im
except docker.errors.ContainerError as exc:
msg = f"Error in container: {exc!s}"
if exc.stderr:
f"{msg}\n{exc.stderr!s}"
msg = f"{msg}\n{exc.stderr!s}"
print_error_and_exit(msg)
if not quiet:
click.echo(docker_log)
Expand Down

0 comments on commit d7bc03c

Please sign in to comment.