mamba icon indicating copy to clipboard operation
mamba copied to clipboard

[micromamba] Using --json for `micromamba create` eats up all error messages

Open romain-intel opened this issue 3 years ago • 2 comments

If there is an error in creating an environment and you use the --json option, the error is not reported back. Worse, the returned JSON says "success": true. micromamba does return a non-zero code but any error is gobbled up.

romain-intel avatar Sep 22 '22 06:09 romain-intel

Same problem with the json here. In my case if a package is not available in a list of packages, while conda returns (among others infos) the type of error and the name of the bad package like this:

conda install --json bad_package 

{
 [...]
  "exception_name": "PackagesNotFoundError",
  "packages": [
    "bad_package"
  ],
}

mamba returns just the following json:

mamba install --json bad_package

{
    "success": false
}

aspyk avatar Sep 28 '22 09:09 aspyk

at least the success is set to false :).

romain-intel avatar Sep 30 '22 21:09 romain-intel

any updates on this? Thanks!

romain-intel avatar Feb 27 '23 20:02 romain-intel

Do you want to try to come up with an initial fix?

jonashaag avatar Feb 27 '23 20:02 jonashaag