Commit 7fb83c9c authored by Thomas White's avatar Thomas White
Browse files

Improve error messages

parent d8750c73
......@@ -478,11 +478,11 @@ int main(int argc, char *argv[])
} else {
fh = fopen(filename, "r");
}
free(filename);
if ( fh == NULL ) {
ERROR("Failed to open input file\n");
ERROR("Failed to open input file '%s'\n", filename);
return 1;
}
free(filename);
if ( intfile != NULL ) {
counts = new_list_count();
......
......@@ -93,7 +93,7 @@ double *read_reflections(const char *filename, unsigned int *counts)
fh = fopen(filename, "r");
if ( fh == NULL ) {
ERROR("Failed to open input file\n");
ERROR("Failed to open input file '%s'\n", filename);
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