Skip to content
Permalink
Browse files
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 e7a461ce7b5626e603784da27aa4c87649f5edec
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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:

0 comments on commit e7a461c

Please sign in to comment.