fix creation

This commit is contained in:
Jeff Becker 2018-09-19 09:32:50 -04:00
parent a36de551e4
commit 3938517dc6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 6 additions and 3 deletions

View File

@ -98,9 +98,12 @@ main(int argc, char *argv[])
std::error_code ec;
if(!fs::create_directories(basepath, ec))
{
llarp::LogError("failed to create '", basepath.string(),
"': ", ec.message());
return 1;
if(ec)
{
llarp::LogError("failed to create '", basepath.string(),
"': ", ec.message());
return 1;
}
}
if(!llarp_ensure_config(fpath.string().c_str(), basepath.string().c_str(),