Add a clarifying log message if offline DB is absent

This commit is contained in:
xynngh 2019-07-13 16:46:35 +04:00
parent 533930b1a1
commit 8143913753
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
@ -82,6 +83,8 @@ public abstract class AbstractDatabase<T extends AbstractDatabaseDataSlice<V>, V
loadInfoDataAfterLoadedHook(); loadInfoDataAfterLoadedHook();
return true; return true;
} catch (FileNotFoundException e) {
LOG.error("loadInfoData() the info-file is not found! HAVE YOU COPIED THE ASSETS? (see `Building` in README)", e);
} catch (Exception e) { } catch (Exception e) {
LOG.error("loadInfoData() error during info file loading", e); LOG.error("loadInfoData() error during info file loading", e);
} }