Show the actual correct config file name that cannot be found

This commit is contained in:
Duke Leto
2021-08-09 17:40:35 -04:00
parent 2471ce20db
commit c29e741109
4 changed files with 13 additions and 14 deletions

View File

@@ -722,14 +722,14 @@ void ReadConfigFile(map<string, string>& mapSettingsRet,
{
boost::filesystem::ifstream streamConfig(GetConfigFile());
if (!streamConfig.good())
throw missing_zcash_conf();
throw missing_hush_conf();
set<string> setOptions;
setOptions.insert("*");
for (boost::program_options::detail::config_file_iterator it(streamConfig, setOptions), end; it != end; ++it)
{
// Don't overwrite existing settings so command line settings override komodo.conf
// Don't overwrite existing settings so command line settings override HUSH3.conf
string strKey = string("-") + it->string_key;
if (mapSettingsRet.count(strKey) == 0)
{