Skip to content

Commit c5daef7

Browse files
committed
Cleanup error message
1 parent be20917 commit c5daef7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/httpfs/httpfs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,12 @@ unique_ptr<HTTPResponse> HTTPFileSystem::GetRangeRequest(FileHandle &handle, str
232232
string responseEtag = response.GetHeaderValue("ETag");
233233

234234
if (!responseEtag.empty() && responseEtag != hfh.etag) {
235-
throw HTTPException(response, "ETag was initially %s and now it returned %s, this likely means the remote file has changed.\nTry restart the read / close file-handle and restart (e.g. `DETACH` in case of database file).\nYou can disable this behaviour via `SET unsafe_disable_etag_checks = true;`", hfh.etag, response.GetHeaderValue("ETag"));
235+
throw HTTPException(response, "ETag was initially %s and now it returned %s, this likely means the remote file has changed.\nTry to restart the read or close the file-handle and read the file again (e.g. `DETACH` in the file is a database file).\nYou can disable checking etags via `SET unsafe_disable_etag_checks = true;`", hfh.etag, response.GetHeaderValue("ETag"));
236236
}
237237
}
238238

239+
240+
239241
if (response.HasHeader("Content-Length")) {
240242
auto content_length = stoll(response.GetHeaderValue("Content-Length"));
241243
if ((idx_t)content_length != buffer_out_len) {

0 commit comments

Comments
 (0)