[Add] Friendly warning if ldata isn't found.

This commit is contained in:
Allanis 2014-05-22 19:08:58 +01:00
parent ab7d3fcb9e
commit 7c71ac5558

View File

@ -99,6 +99,12 @@ static int ldata_openPackfile(void) {
}
/* Open the cache. */
if(lfile_fileExists(ldata_filename) != 1) {
WARN("Cannot find ldata file!");
WARN("Please specify ldata file with -d or data in the conf file.");
exit(1);
return -1;
}
ldata_cache = pack_openCache(ldata_filename);
if(ldata_cache == NULL)
WARN("Unalbe to create Packcache from '%s'.", ldata_filename);