}
void dbfile_assertfail(const char *file, int line, const char *m) {
- fatal("Error in database file %s at byte %ld:\n"
- " Requirement not met at %s:%d:\n"
- " %s",
- path,(long)ftell(dbfile), file,line, m);
+ if (dbfile)
+ fatal("Error in dictionary file %s at byte %ld:\n"
+ " Requirement not met at %s:%d:\n"
+ " %s",
+ path,(long)ftell(dbfile), file,line, m);
+ else
+ fatal("Semantic error in dictionaries:\n"
+ " Requirement not met at %s:%d:\n"
+ " %s",
+ file,line, m);
}