Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/s3fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@
if (entry->second == "400") {
// 400: BAD REQUEST
auto extra_text = S3FileSystem::GetS3BadRequestError(auth_params);
throw Exception(error.Type(), error.RawMessage() + extra_text, extra_info);
throw Exception(extra_info, error.Type(), error.RawMessage() + extra_text);

Check failure on line 893 in src/s3fs.cpp

View workflow job for this annotation

GitHub Actions / MinIO Tests

no matching function for call to ‘duckdb::Exception::Exception(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&, const duckdb::ExceptionType&, std::__cxx11::basic_string<char>)’
}
if (entry->second == "403") {
// 403: FORBIDDEN
Expand All @@ -900,7 +900,7 @@
} else {
extra_text = S3FileSystem::GetS3AuthError(auth_params);
}
throw Exception(error.Type(), error.RawMessage() + extra_text, extra_info);
throw Exception(extra_info, error.Type(), error.RawMessage() + extra_text);

Check failure on line 903 in src/s3fs.cpp

View workflow job for this annotation

GitHub Actions / MinIO Tests

no matching function for call to ‘duckdb::Exception::Exception(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&, const duckdb::ExceptionType&, std::__cxx11::basic_string<char>)’
}
}
throw;
Expand Down Expand Up @@ -936,14 +936,14 @@
void S3FileSystem::RemoveFile(const string &path, optional_ptr<FileOpener> opener) {
auto handle = OpenFile(path, FileFlags::FILE_FLAGS_NULL_IF_NOT_EXISTS, opener);
if (!handle) {
throw IOException("Could not remove file \"%s\": %s", {{"errno", "404"}}, path, "No such file or directory");
throw IOException({{"errno", "404"}}, "Could not remove file \"%s\": %s", path, "No such file or directory");

Check failure on line 939 in src/s3fs.cpp

View workflow job for this annotation

GitHub Actions / MinIO Tests

no matching function for call to ‘duckdb::IOException::IOException(<brace-enclosed initializer list>, const char [31], const std::string&, const char [26])’
}

auto &s3fh = handle->Cast<S3FileHandle>();
auto res = DeleteRequest(*handle, s3fh.path, {});
if (res->status != HTTPStatusCode::OK_200 && res->status != HTTPStatusCode::NoContent_204) {
throw IOException("Could not remove file \"%s\": %s", {{"errno", to_string(static_cast<int>(res->status))}},
throw IOException({{"errno", to_string(static_cast<int>(res->status))}}, "Could not remove file \"%s\": %s",
path, res->GetError());

Check failure on line 946 in src/s3fs.cpp

View workflow job for this annotation

GitHub Actions / MinIO Tests

no matching function for call to ‘duckdb::IOException::IOException(<brace-enclosed initializer list>, const char [31], const std::string&, const std::string&)’
}
}

Expand Down
Loading