Disallow incremental scan when version does not match (#33)

This commit is contained in:
2020-03-03 16:36:07 -05:00
parent 363375d5da
commit 98c40901ed
2 changed files with 12 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ index_descriptor_t read_index_descriptor(char *path) {
int fd = open(path, O_RDONLY);
if (fd == -1) {
LOG_FATAL("serialize.c", "Invalid/corrupt index (Could not find descriptor)\n")
LOG_FATALF("serialize.c", "Invalid/corrupt index (Could not find descriptor): %s: %s\n", path ,strerror(errno))
}
char *buf = malloc(info.st_size + 1);