diff --git a/support/src/utils/file.cpp b/support/src/utils/file.cpp index e9bd0bd5..425b7779 100644 --- a/support/src/utils/file.cpp +++ b/support/src/utils/file.cpp @@ -557,7 +557,8 @@ auto get_free_drive_space(std::string_view path) throw utils::error::create_exception({ function_name, "failed to validate path", - "parent paths are not the same" smb_path, + "parent paths are not the same", + smb_path, path, }); } @@ -691,6 +692,8 @@ auto get_free_drive_space(std::string_view path) auto smb_get_uri_path(std::string_view smb_path, std::string_view user, std::string_view password) -> std::string { + REPERTORY_USES_FUNCTION_NAME(); + if (not validate_smb_path(smb_path)) { throw utils::error::create_exception({ function_name, diff --git a/support/src/utils/file_smb_directory.cpp b/support/src/utils/file_smb_directory.cpp index d5f2aaa1..a532ddcf 100644 --- a/support/src/utils/file_smb_directory.cpp +++ b/support/src/utils/file_smb_directory.cpp @@ -25,6 +25,8 @@ #include "utils/common.hpp" #include "utils/error.hpp" +#include "utils/unix.hpp" +#include "utils/windows.hpp" namespace repertory::utils::file { auto smb_directory::open(std::string_view host, std::string_view user, diff --git a/support/src/utils/file_smb_file.cpp b/support/src/utils/file_smb_file.cpp index 908a322c..00b2f310 100644 --- a/support/src/utils/file_smb_file.cpp +++ b/support/src/utils/file_smb_file.cpp @@ -216,7 +216,8 @@ auto smb_file::move_to(std::string_view new_path) -> bool { throw utils::error::create_exception({ function_name, "failed to connect to share", - path_std::to_string(res), + path_, + std::to_string(res), share_name_, }); } @@ -381,7 +382,8 @@ auto smb_file::remove() -> bool { throw utils::error::create_exception({ function_name, "failed to connect to share", - path_std::to_string(res), + path_, + std::to_string(res), share_name_, }); }