From 781278df062feb710adf16d736e0d22d622cbda8 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 2 Oct 2024 11:40:12 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/file_manager/file_manager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }