Commit 9444799b authored by Thomas White's avatar Thomas White
Browse files

Complain if reference file cannot be read

parent 5e6aa4d8
...@@ -394,8 +394,11 @@ int main(int argc, char *argv[]) ...@@ -394,8 +394,11 @@ int main(int argc, char *argv[])
RefList *list; RefList *list;
list = read_reflections(reference_file); list = read_reflections(reference_file);
if ( list == NULL ) {
ERROR("Failed to read '%s'\n", reference_file);
return 1;
}
free(reference_file); free(reference_file);
if ( list == NULL ) return 1;
reference = asymmetric_indices(list, sym); reference = asymmetric_indices(list, sym);
reflist_free(list); reflist_free(list);
have_reference = 1; have_reference = 1;
......
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