Skip to content

Commit

Permalink
refactor: not fail when language file not load
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Dec 31, 2024
1 parent bcb404c commit 4bccc86
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/LegacyMoney.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,7 @@ bool LegacyMoney::load() {
if (!loadConfig() || !initDatabase()) {
return false;
}
if (auto res = ll::i18n::getInstance().load(getSelf().getLangDir()); !res) {
getSelf().getLogger().error("Failed to load language file");
ll::error_utils::printCurrentException(getSelf().getLogger());
return false;
}
auto res = ll::i18n::getInstance().load(getSelf().getLangDir())
return true;
}

Expand Down

0 comments on commit 4bccc86

Please sign in to comment.