Skip to content

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

Merged
vasudeva8 merged 2 commits into
samtools:developfrom
jrandall:fix-2049-sort-close-error-message
Jun 3, 2024
Merged

add filename and error message to 'error closing output file' error in samtools sort#2050
vasudeva8 merged 2 commits into
samtools:developfrom
jrandall:fix-2049-sort-close-error-message

Conversation

@jrandall

Copy link
Copy Markdown
Contributor

fixes #2049

@jrandall jrandall force-pushed the fix-2049-sort-close-error-message branch from 77ecead to 7dd54f2 Compare May 12, 2024 16:56
Comment thread bam_sort.c Outdated

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
Copy Markdown
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
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.

samtools sort incorrectly reports ENOSPC error from fdatasync while writing temporary outputs as "error closing output file"

2 participants