summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2014-12-16 20:43:36 +0000
committerSimon Tatham <anakin@pobox.com>2014-12-16 20:43:36 +0000
commit0a72bbbdf4b9ff119587782009839440a4869dad (patch)
tree7a575527056a74cb19bb336ac7c3877cf8ef02ee
parentcbe54149d478a58c5e385d1dd7d76fe97b1f1015 (diff)
downloadhalibut-0a72bbbdf4b9ff119587782009839440a4869dad.zip
halibut-0a72bbbdf4b9ff119587782009839440a4869dad.tar.gz
halibut-0a72bbbdf4b9ff119587782009839440a4869dad.tar.bz2
halibut-0a72bbbdf4b9ff119587782009839440a4869dad.tar.xz
Add missing err_cantopen.
As far as I can tell from the source control history, Halibut has _never_ actually printed an error message on failure to open one of its input files! The error message has existed all along, but was never actually invoked. Ahem.
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input.c b/input.c
index be59386..88ace8f 100644
--- a/input.c
+++ b/input.c
@@ -1664,7 +1664,9 @@ paragraph *read_input(input *in, indexdata *idx) {
} else {
(*reader)(in);
}
- }
+ } else {
+ err_cantopen(in->filenames[in->currindex]);
+ }
in->currindex++;
}