fix encrypt provider start

This commit is contained in:
Scott E. Graves 2024-12-16 14:56:41 -06:00
parent f68de677c6
commit 77d985a483

View File

@ -1063,7 +1063,7 @@ auto encrypt_provider::start(api_item_added_callback /*api_item_added*/,
#else //! defined(_WIN32)
if (cur_path != cfg_path) {
#endif // defined(_WIN32)
throw startup_exception(fmt::print(
throw startup_exception(fmt::format(
"source path has changed|cur|{}|cfg|{}", cur_path, cfg.path));
}
} else {
@ -1074,9 +1074,9 @@ auto encrypt_provider::start(api_item_added_callback /*api_item_added*/,
.column_value("source_path", cfg_path)
.go();
if (not ins_res.ok()) {
throw startup_exception(fmt::print("failed to create root|{}|{}",
ins_res.get_error(),
ins_res.get_error_str()));
throw startup_exception(fmt::format("failed to create root|{}|{}",
ins_res.get_error(),
ins_res.get_error_str()));
}
}