From b010de66629adf5fdcad647ef3d802e142962352 Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Wed, 19 Jun 2024 20:38:47 +0200 Subject: [PATCH] Add HTTP error code to extension install failures --- src/main/extension/extension_install.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/extension/extension_install.cpp b/src/main/extension/extension_install.cpp index 4dff87814ed7..997a072d1a32 100644 --- a/src/main/extension/extension_install.cpp +++ b/src/main/extension/extension_install.cpp @@ -381,8 +381,8 @@ static unique_ptr 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()));