Commit 7c9587d6 authored by Thomas White's avatar Thomas White Committed by Thomas White
Browse files

render_hkl: Abort if unit cell could not be loaded

parent 3dfb25f0
......@@ -477,6 +477,10 @@ int main(int argc, char *argv[])
infile = argv[optind];
cell = load_cell_from_pdb(pdb);
if ( cell == NULL ) {
ERROR("Couldn't load unit cell from %s\n", pdb);
return 1;
}
cts = new_list_count();
ref = read_reflections(infile, cts, NULL);
if ( ref == NULL ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment