mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Test datadir in conf file exists
This commit is contained in:
parent
91eeaa0335
commit
529b866759
@ -639,6 +639,9 @@ void ArgsManager::ReadConfigFile(const std::string& confPath)
|
||||
}
|
||||
// If datadir is changed in .conf file:
|
||||
ClearDatadirCache();
|
||||
if (!fs::is_directory(GetDataDir(false))) {
|
||||
throw std::runtime_error(strprintf("specified data directory \"%s\" does not exist.", gArgs.GetArg("-datadir", "").c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user