Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: better error message in case of failing to create conda env (#1526)
* fix: better error message in case of failing to create conda env

* dbg

* dbg
  • Loading branch information
johanneskoester committed Mar 28, 2022
1 parent 7797595 commit e7a461c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snakemake/deployment/conda.py
Expand Up @@ -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:
Expand Down

0 comments on commit e7a461c

Please sign in to comment.