exception handling

This commit is contained in:
Scott E. Graves 2024-12-31 13:41:00 -06:00
parent 2446f024ef
commit 23de2af98d

View File

@ -727,8 +727,8 @@ auto sia_provider::rename_file(const std::string &from_api_path,
return get_db().rename_item_meta(from_api_path, to_api_path);
} catch (const std::exception &e) {
utils::error::raise_api_path_error(
function_name, e, fmt::format("{}|{}", from_api_path, to_api_path),
"failed to rename file");
function_name, fmt::format("{}|{}", from_api_path, to_api_path), e,
fmt::format("failed to rename file file|response|{}", error_data));
}
return api_error::error;