diff options
author | Thomas White <taw@physics.org> | 2011-07-14 17:05:34 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:33 +0100 |
commit | 9444799ba6a30d2dc43b15320ef3e83943c29546 (patch) | |
tree | 7d51173ac47a8fa452087773322f37f876cb053d /src | |
parent | 5e6aa4d8730afc2cf2e4e509f131cbdd1d446007 (diff) |
Complain if reference file cannot be read
Diffstat (limited to 'src')
-rw-r--r-- | src/partialator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c index 605c8bcf..6c9748b6 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -394,8 +394,11 @@ int main(int argc, char *argv[]) RefList *list; list = read_reflections(reference_file); + if ( list == NULL ) { + ERROR("Failed to read '%s'\n", reference_file); + return 1; + } free(reference_file); - if ( list == NULL ) return 1; reference = asymmetric_indices(list, sym); reflist_free(list); have_reference = 1; |