This commit is contained in:
Scott E. Graves 2024-12-20 14:12:22 -06:00
parent c943c1ecd7
commit 00844cb89c

View File

@ -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()) {