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

add filename and error message to 'error closing output file' error in samtools sort #2050

Merged

Conversation

jrandall
Copy link
Contributor

fixes #2049

bam_sort.c Outdated
@@ -1934,7 +1934,7 @@ static int bam_merge_simple(SamOrder sam_order, char *sort_tag, const char *out,
}

if (sam_close(fpout) < 0) {
print_error(cmd, "error closing output file");
print_error_errno(cmd, "error closing output file \"%s\"", fn[i]);
Copy link
Contributor

Choose a reason for hiding this comment

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

out would be the appropriate filename instead of fn[I] as fpout is opened using it.

@vasudeva8 vasudeva8 merged commit 078b220 into samtools:develop Jun 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants