fix
This commit is contained in:
parent
781278df06
commit
072a5356b6
@ -565,6 +565,7 @@ auto file_manager::remove_file(const std::string &api_path) -> api_error {
|
||||
.go();
|
||||
if (not result.ok()) {
|
||||
utils::error::raise_api_path_error(function_name, api_path,
|
||||
api_error::error,
|
||||
"failed to remove from resume table");
|
||||
}
|
||||
|
||||
@ -618,6 +619,7 @@ void file_manager::remove_upload(const std::string &api_path, bool no_lock) {
|
||||
.go();
|
||||
if (not result.ok()) {
|
||||
utils::error::raise_api_path_error(function_name, api_path,
|
||||
api_error::error,
|
||||
"failed to remove from upload table");
|
||||
}
|
||||
|
||||
@ -627,7 +629,8 @@ void file_manager::remove_upload(const std::string &api_path, bool no_lock) {
|
||||
.go();
|
||||
if (not result.ok()) {
|
||||
utils::error::raise_api_path_error(
|
||||
function_name, api_path, "failed to remove from upload_active table");
|
||||
function_name, api_path, api_error::error,
|
||||
"failed to remove from upload_active table");
|
||||
}
|
||||
|
||||
if (upload_lookup_.find(api_path) != upload_lookup_.end()) {
|
||||
@ -996,6 +999,7 @@ void file_manager::swap_renamed_items(std::string from_api_path,
|
||||
.go();
|
||||
if (not result.ok()) {
|
||||
utils::error::raise_api_path_error(function_name, to_api_path,
|
||||
api_error::error,
|
||||
"failed to update resume table");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user