diff --git a/src/poetry/utils/env.py b/src/poetry/utils/env.py index aa3ff06e49e..9d4db917807 100644 --- a/src/poetry/utils/env.py +++ b/src/poetry/utils/env.py @@ -473,11 +473,13 @@ def __init__(self, e: CalledProcessError, input: str | None = None) -> None: self.e = e message = ( - f"Command {e.cmd} errored with the following return code {e.returncode}," - f" and output: \n{decode(e.output)}" + f"Command {e.cmd} errored with the following return code {e.returncode}\n" + f"Full output:\n{decode(e.output)}\n" ) + if e.stderr: + message += f"\nError output:\n{decode(e.stderr)}\n" if input: - message += f"input was : {input}" + message += f"\ninput was : {input}" super().__init__(message)