aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-14 19:32:26 +0200
committerThomas White <taw@physics.org>2010-04-14 19:32:26 +0200
commit7fb83c9c134a0c3056de989cf0c934abe4b1cebb (patch)
tree6a48081eca8c60b6dd7bd63fc583396fb6423137 /src/indexamajig.c
parentd8750c73d11d08c13239091aca4ad325fcd16ba5 (diff)
Improve error messages
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c4
1 files changed, 2 insertions, 2 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();