Skip to content

Conversation

@faithokamoto
Copy link
Contributor

Changelog Entry

To be copied to the draft changelog by merger:

  • vg filter gives a clean error when passing files that don't look like GAMs

Description

A long-term minor annoyance of mine: if you accidentally pass a valid non-GAM file (e.g. a TSV) to vg filter it would try to read it as a GAM and then very verbosely and confusingly crash. This change checks whether the filename ends with .gam. If not, a short and readable error is printed. Standard input works as before since that can't be easily checked.

@faithokamoto faithokamoto merged commit c4c1892 into master Dec 17, 2025
2 checks passed
@faithokamoto faithokamoto deleted the non-gam-filter-err branch December 17, 2025 22:39
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.

3 participants