Skip to content

Return failure status for GL validation errors - #664

Open
thierrygosselin wants to merge 1 commit into
ANGSD:masterfrom
thierrygosselin:fix-gl-validation-exit-status
Open

thierrygosselin wants to merge 1 commit into
ANGSD:masterfrom
thierrygosselin:fix-gl-validation-exit-status

Conversation

@thierrygosselin

Copy link
Copy Markdown

Summary

Several fatal validation paths in the genotype-likelihood and genotype-calling modules used exit(0). This reports successful completion to the operating system even when ANGSD has rejected the input or parameters.

This change replaces those success-status exits with EXIT_FAILURE in:

  • abcGL.cpp;
  • abcCallGenotypes.cpp.

The diagnostic messages and validation logic are unchanged. Only the process exit status is corrected, so wrappers and downstream workflows can reliably detect failed ANGSD runs.

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