Skip to content
Snippets Groups Projects
Commit 0017f984 authored by B13nch3n's avatar B13nch3n
Browse files

Exite non-zero on failed validation.

parent 81dfbb2b
No related branches found
No related tags found
No related merge requests found
......@@ -695,6 +695,12 @@ def _main():
print(f"Writing results of CifCheck to '{opts.out_file}'")
cifcheck.make_json_output()
if cifcheck.got_issues():
# If CifCheck found issues with the mmCIF file, exit with code 2. Exit
# code 1 is reserved for general issues running the command, like "file
# not found".
sys.exit(2)
if __name__ == "__main__":
_main()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment