mirror of https://github.com/mamba-org/mamba.git
Add recommendation if error with root prefix (#3513)
Add recommendation if error
This commit is contained in:
parent
c4068d3117
commit
215e5e522a
|
@ -658,7 +658,12 @@ namespace mamba
|
|||
&& !fs::exists(prefix / "envs"))
|
||||
{
|
||||
return make_unexpected(
|
||||
fmt::format(R"(Path "{}" is not an existing root prefix.)", prefix.string()),
|
||||
fmt::format(
|
||||
R"(Path "{}" is not an existing root prefix.)"
|
||||
R"( Please set explicitly `MAMBA_ROOT_PREFIX` to "{}" to skip this error.)",
|
||||
prefix.string(),
|
||||
prefix.string()
|
||||
),
|
||||
mamba_error_code::incorrect_usage
|
||||
);
|
||||
}
|
||||
|
@ -688,7 +693,9 @@ namespace mamba
|
|||
return make_unexpected(
|
||||
fmt::format(
|
||||
R"(Could not use default root_prefix "{}":)"
|
||||
R"( Directory exists, is not empty and not a conda prefix.)",
|
||||
R"( Directory exists, is not empty and not a conda prefix.)"
|
||||
R"( Please set explicitly `MAMBA_ROOT_PREFIX` to "{}" to skip this error.)",
|
||||
prefix.string(),
|
||||
prefix.string()
|
||||
),
|
||||
mamba_error_code::incorrect_usage
|
||||
|
|
Loading…
Reference in New Issue