diff options
-rw-r--r-- | src/indexamajig.c | 4 | ||||
-rw-r--r-- | src/reflections.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 417fdc9a..47d9a971 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -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(); diff --git a/src/reflections.c b/src/reflections.c index b49b4a15..a5917d1e 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -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; } |