fix: Add a hint on cache corruption (#3736)

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
This commit is contained in:
Julien Jerphanion 2025-01-09 18:01:58 +01:00 committed by GitHub
parent 374228f860
commit f3c7c7797e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ namespace mamba
m_aggregated_message += er.what();
m_aggregated_message += "\n";
}
m_aggregated_message += "If you run into this error repeatedly, your package cache may be corrupted.\n"
"Please try running `mamba clean -a` to remove this cache before retrying the operation.\n"
"\n"
"If you still are having issues, please report the error on `mamba-org/mamba`'s issue tracker:\n"
"https://github.com/mamba-org/mamba/issues/new?assignees=&labels=&projects=&template=bug.yml";
}
return m_aggregated_message.c_str();
}