diff --git a/repertory/librepertory/src/file_manager/file_manager.cpp b/repertory/librepertory/src/file_manager/file_manager.cpp index 1d8d5b1b..bb82b183 100644 --- a/repertory/librepertory/src/file_manager/file_manager.cpp +++ b/repertory/librepertory/src/file_manager/file_manager.cpp @@ -564,7 +564,7 @@ auto file_manager::remove_file(const std::string &api_path) -> api_error { .equals(api_path) .go(); if (not result.ok()) { - utils::error::raise_api_path_error(function_name, to_api_path, + utils::error::raise_api_path_error(function_name, api_path, "failed to remove from resume table"); } @@ -599,6 +599,10 @@ void file_manager::remove_upload(const std::string &api_path) { } void file_manager::remove_upload(const std::string &api_path, bool no_lock) { + static constexpr const std::string_view function_name{ + static_cast(__FUNCTION__), + }; + if (provider_.is_direct_only()) { return; }