diff --git a/snakemake/deployment/conda.py b/snakemake/deployment/conda.py index d409e6952..956be88f0 100644 --- a/snakemake/deployment/conda.py +++ b/snakemake/deployment/conda.py @@ -509,8 +509,7 @@ def create(self, dryrun=False): # remove potential partially installed environment shutil.rmtree(env_path, ignore_errors=True) raise CreateCondaEnvironmentException( - "Could not create conda environment from {}:\n".format(env_file) - + e.output + f"Could not create conda environment from {env_file}:\nCommand:\n{e.cmd}\nOutput:\n{e.output}" ) if tmp_env_file: