exception handling
This commit is contained in:
parent
45ddd528b2
commit
2446f024ef
@ -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);
|
return get_db().rename_item_meta(from_api_path, to_api_path);
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
utils::error::raise_api_path_error(function_name, e, api_path,
|
utils::error::raise_api_path_error(
|
||||||
"failed to rename file");
|
function_name, e, fmt::format("{}|{}", from_api_path, to_api_path),
|
||||||
|
"failed to rename file");
|
||||||
}
|
}
|
||||||
|
|
||||||
return api_error::error;
|
return api_error::error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user