Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add a hint on cache corruption #3736

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libmamba/src/core/error_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
jjerphan marked this conversation as resolved.
Show resolved Hide resolved
m_aggregated_message += "Please try running `mamba clean -a` to remove this cache before retrying the operation.\n";
m_aggregated_message += "\n";
m_aggregated_message += "If you still are having issues, please report the error on `mamba-org/mamba`'s issue tracker:\n";
m_aggregated_message += "https://github.com/mamba-org/mamba/issues/new?assignees=&labels=&projects=&template=bug.yml";
}
return m_aggregated_message.c_str();
}
Expand Down
Loading