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

feat: make error message in mmseqs run prettier #115

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

ivan-aksamentov
Copy link
Member

This follows color_eyre conventions and uses different sections to make error message prettier.

I think that chaining .arg() and then adding -k with .args() does not necessarily actually adds -k, but I don't know how to check it. So I opted for manually constructing all-in-one array of args, which I pass using a single .args() call. This also allow us to print the full command to the user and inspect it during debugging.

Also refactored and simplified things a little.

Image

This follows `color_eyre` conventions and uses different sections to make error message prettier.

I think that chaining `.arg()` and then adding `-k` with `.args()` does not necessarily actually adds `-k`, but I don't know how to check it. So I opted for manually constructing all-in-one array of args, which I pass using a single `.args()` call. This also allow us to print the full command to the user and inspect it during debugging.

Also refactored and simplified things a little.

![Image](https://github.com/user-attachments/assets/726a580f-c7f2-4e59-8f45-50089ab8125e)
@ivan-aksamentov ivan-aksamentov merged commit 4ffb3dc into alignment-kernel-polish Jan 23, 2025
14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the suggestion-2 branch January 23, 2025 11:02
ivan-aksamentov added a commit that referenced this pull request Jan 23, 2025
After #115 where I tested mmseqs errors, I forgot to flip back the `--threads` arg to the correct spelling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants