feat add parse error info
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Has been cancelled
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Has been cancelled
linux-arm-gcc / linux-gcc-armhf (push) Has been cancelled
linux-x64-gcc / linux-gcc (Debug) (push) Has been cancelled
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Has been cancelled
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Has been cancelled

This commit is contained in:
tqcq 2024-04-11 07:03:31 +00:00
parent ec8bbc8465
commit 7ac302c3d7

View File

@ -53,6 +53,8 @@ Config::ReadInConfig()
value = toml::parse(stream_data, "string"); value = toml::parse(stream_data, "string");
return true; return true;
// goto config_read_success; // goto config_read_success;
} catch (const std::exception &e) {
LOGE("Failed to parse config file: {}, reason: e", sled::to_string(full_path), e.what());
} catch (...) { } catch (...) {
LOGD("Failed to parse config file: {}", sled::to_string(full_path)); LOGD("Failed to parse config file: {}", sled::to_string(full_path));
} }