mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 15:46:08 -04:00
check load_t_from_json return values
This commit is contained in:
parent
e396146aee
commit
23abe60705
2 changed files with 11 additions and 4 deletions
|
@ -305,7 +305,8 @@ namespace cryptonote
|
|||
}
|
||||
m_config_folder_path = boost::filesystem::path(command_line::get_arg(vm, arg_extra_messages)).parent_path().string();
|
||||
m_config = AUTO_VAL_INIT(m_config);
|
||||
epee::serialization::load_t_from_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME);
|
||||
const std::string filename = m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME;
|
||||
CHECK_AND_ASSERT_MES(epee::serialization::load_t_from_json_file(m_config, filename), false, "Failed to load data from " << filename);
|
||||
MINFO("Loaded " << m_extra_messages.size() << " extra messages, current index " << m_config.current_extra_message_index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue