Skip to content

Commit

Permalink
Add HTTP error code to extension install failures
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Jun 19, 2024
1 parent f9238f4 commit b010de6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/extension/extension_install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ static unique_ptr<ExtensionInstallInfo> InstallFromHttpUrl(DBConfig &config, con
message += "\nAre you using a development build? In this case, extensions might not (yet) be uploaded.";
}
if (res.error() == duckdb_httplib::Error::Success) {
throw HTTPException(res.value(), "Failed to download extension \"%s\" at URL \"%s%s\"\n%s", extension_name,
url_base, url_local_part, message);
throw HTTPException(res.value(), "Failed to download extension \"%s\" at URL \"%s%s\" (HTTP %n)\n%s",
extension_name, url_base, url_local_part, res->status, message);
} else {
throw IOException("Failed to download extension \"%s\" at URL \"%s%s\"\n%s (ERROR %s)", extension_name,
url_base, url_local_part, message, to_string(res.error()));
Expand Down

0 comments on commit b010de6

Please sign in to comment.