refactor
This commit is contained in:
parent
c943c1ecd7
commit
00844cb89c
@ -98,15 +98,18 @@ app_config::app_config(const provider_type &prov,
|
||||
set_host_config(host_cfg);
|
||||
|
||||
if (not utils::file::directory(data_directory_).create_directory()) {
|
||||
throw startup_exception("unable to create: " + data_directory_);
|
||||
throw startup_exception(
|
||||
fmt::format("unable to create data directory|sp|{}", data_directory_));
|
||||
}
|
||||
|
||||
if (not utils::file::directory(cache_directory_).create_directory()) {
|
||||
throw startup_exception("unable to create: " + cache_directory_);
|
||||
throw startup_exception(fmt::format(
|
||||
"unable to create cache directory|sp|{}", cache_directory_));
|
||||
}
|
||||
|
||||
if (not utils::file::directory(log_directory_).create_directory()) {
|
||||
throw startup_exception("unable to create: " + log_directory_);
|
||||
throw startup_exception(
|
||||
fmt::format("unable to create log directory|sp|{}", log_directory_));
|
||||
}
|
||||
|
||||
if (not load()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user