Skip to content

Commit e21cc39

Browse files
authored
Merge pull request duckdb#13 from dentiny/hjiang/populate-http-status
[Easy] Populate http status to exception
2 parents 47e7572 + 9545ce1 commit e21cc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/httpfs/httpfs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ HTTPFileSystem::RunRequestWithRetry(const std::function<duckdb_httplib_openssl::
181181
} else if (err == duckdb_httplib_openssl::Error::Success) {
182182
throw HTTPException(response, "Request returned HTTP %d for HTTP %s to '%s'", status, method, url);
183183
} else {
184-
throw IOException("%s error for HTTP %s to '%s'", to_string(err), method, url);
184+
throw IOException("%s error for HTTP %s to '%s' with status %d", to_string(err), method, url, status);
185185
}
186186
}
187187
}

0 commit comments

Comments
 (0)