Skip to content

Commit

Permalink
populate http status to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dentiny committed Jan 31, 2025
1 parent c9732d0 commit 9545ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/httpfs/httpfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ HTTPFileSystem::RunRequestWithRetry(const std::function<duckdb_httplib_openssl::
} else if (err == duckdb_httplib_openssl::Error::Success) {
throw HTTPException(response, "Request returned HTTP %d for HTTP %s to '%s'", status, method, url);
} else {
throw IOException("%s error for HTTP %s to '%s'", to_string(err), method, url);
throw IOException("%s error for HTTP %s to '%s' with status %d", to_string(err), method, url, status);
}
}
}
Expand Down

0 comments on commit 9545ce1

Please sign in to comment.