exception handling

This commit is contained in:
Scott E. Graves 2024-12-31 13:39:29 -06:00
parent 45ddd528b2
commit 2446f024ef

View File

@ -726,8 +726,9 @@ 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, api_path,
"failed to rename file");
utils::error::raise_api_path_error(
function_name, e, fmt::format("{}|{}", from_api_path, to_api_path),
"failed to rename file");
}
return api_error::error;