Skip to content

Revert "Fix/graceful error on bam output" - #196

Merged
noamteyssier merged 1 commit into
dev-0.5.11from
revert-195-fix/graceful-error-on-bam-output
Jul 20, 2026
Merged

Revert "Fix/graceful error on bam output"#196
noamteyssier merged 1 commit into
dev-0.5.11from
revert-195-fix/graceful-error-on-bam-output

Conversation

@noamteyssier

Copy link
Copy Markdown
Collaborator

Reverts #195

@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 replaces a direct bail! macro call with a fully-qualified anyhow::bail! call in src/cli/output.rs and removes the test_decode_bam_output_rejected test in src/commands/decode/mod.rs. The reviewer suggested reverting the change to anyhow::bail! and using the simpler bail! macro instead, as it is already imported in the file.

Comment thread src/cli/output.rs
return Ok(format);
}
bail!("Could not infer file format.")
anyhow::bail!("Could not infer file format.")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Since bail is already imported from anyhow on line 1, you can use bail! directly instead of the fully-qualified anyhow::bail! to maintain consistency and readability.

Suggested change
anyhow::bail!("Could not infer file format.")
bail!("Could not infer file format.")

@noamteyssier
noamteyssier merged commit 688e5aa into dev-0.5.11 Jul 20, 2026
8 checks passed
@noamteyssier
noamteyssier deleted the revert-195-fix/graceful-error-on-bam-output branch July 20, 2026 21:30
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