This commit is contained in:
Scott E. Graves 2025-02-19 13:17:12 -06:00
parent c52f7e84e6
commit 292dfaab3f

View File

@ -118,8 +118,8 @@ void data_db::remove(std::string_view download_id) {
[&download_id](rocksdb::Transaction *txn) -> auto {
return txn->Delete(download_id);
})) {
utils::error::handle_exception(
function_name, fmt::format("failed to remove|{}", download_id));
utils::error::handle_error(function_name,
fmt::format("failed to remove|{}", download_id));
}
}
@ -130,7 +130,7 @@ void data_db::set(const data_entry &entry) {
function_name, [&entry](rocksdb::Transaction *txn) -> auto {
return txn->Put(entry.download_id, nlohmann::json(entry).dump());
})) {
utils::error::handle_exception(
utils::error::handle_error(
function_name,
fmt::format("failed to set|{}", nlohmann::json(entry).dump(2)));
}