Commit 8a1980e7 authored by Thomas White's avatar Thomas White
Browse files

File handling fixes

parent 4400739e
......@@ -256,6 +256,10 @@ int main(int argc, char *argv[])
image.hdr = NULL;
get_diffraction(&image, na, nb, nc);
if ( image.molecule == NULL ) {
ERROR("Couldn't open molecule.pdb\n");
return 1;
}
record_image(&image, !config_nowater, !config_nonoise,
!config_nobloom);
......
......@@ -333,7 +333,7 @@ struct molecule *load_molecule()
fh = fopen("molecule.pdb", "r");
if ( fh == NULL ) {
ERROR("Couldn't open file\n");
ERROR("Couldn't open PDB file\n");
return 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