Silently ignore config file if it exists already

pull/1186/head
Stephen Shelton 4 years ago
parent e3cb4b2d60
commit 0e5e9a1222
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -512,7 +512,10 @@ namespace llarp
// fail to overwrite if not instructed to do so
if(fs::exists(confFile, ec) && !overwrite)
throw std::invalid_argument(stringify("Config file ", confFile, " already exists"));
{
LogDebug("Not creating config file; it already exists.");
return;
}
if (ec) throw std::runtime_error(stringify("filesystem error: ", ec));

Loading…
Cancel
Save