From 9444799ba6a30d2dc43b15320ef3e83943c29546 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 14 Jul 2011 17:05:34 +0200 Subject: Complain if reference file cannot be read --- src/partialator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/partialator.c') 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; -- cgit v1.2.3