Skip to content

Fix/graceful error on bam output - #195

Merged
noamteyssier merged 3 commits into
dev-0.5.11from
fix/graceful-error-on-bam-output
Jul 20, 2026
Merged

Fix/graceful error on bam output#195
noamteyssier merged 3 commits into
dev-0.5.11from
fix/graceful-error-on-bam-output

Conversation

@noamteyssier

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the file format resolution logic in OutputFile::format and explicitly rejects BAM output with a clean error instead of allowing it to cause a panic during decoding. A corresponding unit test has been added to verify this behavior. The review feedback suggests using the imported bail! macro directly instead of anyhow::bail! to maintain consistency.

Comment thread src/cli/output.rs Outdated
@noamteyssier
noamteyssier merged commit 6c3f765 into dev-0.5.11 Jul 20, 2026
2 of 8 checks passed
@noamteyssier
noamteyssier deleted the fix/graceful-error-on-bam-output branch July 20, 2026 21:25
@noamteyssier
noamteyssier restored the fix/graceful-error-on-bam-output branch July 20, 2026 21:29
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.

1 participant