mirror of https://github.com/mamba-org/mamba.git
Adds logs clarifying the source of the error "could not load prefix data (#3581)
This commit is contained in:
parent
c511d5c9f7
commit
a638f702e2
|
@ -596,7 +596,9 @@ namespace mamba
|
|||
if (!exp_prefix_data)
|
||||
{
|
||||
// TODO: propagate tl::expected mechanism
|
||||
throw std::runtime_error("could not load prefix data");
|
||||
throw std::runtime_error(
|
||||
fmt::format("could not load prefix data: {}", exp_prefix_data.error().what())
|
||||
);
|
||||
}
|
||||
PrefixData& prefix_data = exp_prefix_data.value();
|
||||
|
||||
|
|
|
@ -59,7 +59,9 @@ namespace mamba
|
|||
if (!sprefix_data)
|
||||
{
|
||||
// TODO: propagate tl::expected mechanism
|
||||
throw std::runtime_error("could not load prefix data");
|
||||
throw std::runtime_error(
|
||||
fmt::format("could not load prefix data: {}", sprefix_data.error().what())
|
||||
);
|
||||
}
|
||||
PrefixData& prefix_data = sprefix_data.value();
|
||||
|
||||
|
|
|
@ -46,7 +46,9 @@ namespace mamba
|
|||
if (!sprefix_data)
|
||||
{
|
||||
// TODO: propagate tl::expected mechanism
|
||||
throw std::runtime_error("could not load prefix data");
|
||||
throw std::runtime_error(
|
||||
fmt::format("could not load prefix data: {}", sprefix_data.error().what())
|
||||
);
|
||||
}
|
||||
PrefixData& prefix_data = sprefix_data.value();
|
||||
for (const auto& package : prefix_data.records())
|
||||
|
|
Loading…
Reference in New Issue