[Add] Friendly warning if ldata isn't found.
This commit is contained in:
parent
ab7d3fcb9e
commit
7c71ac5558
@ -99,6 +99,12 @@ static int ldata_openPackfile(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Open the cache. */
|
/* 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);
|
ldata_cache = pack_openCache(ldata_filename);
|
||||||
if(ldata_cache == NULL)
|
if(ldata_cache == NULL)
|
||||||
WARN("Unalbe to create Packcache from '%s'.", ldata_filename);
|
WARN("Unalbe to create Packcache from '%s'.", ldata_filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user