Skip to content

Commit 8a03d19

Browse files
committed
chore: log curl errors
1 parent ed5f555 commit 8a03d19

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/functions/get_tranco.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace duckdb
3535

3636
if (res != CURLE_OK)
3737
{
38+
LogMessage ("ERROR", "Failed to fetch Tranco download code: " + std::string (curl_easy_strerror (res)));
3839
throw std::runtime_error ("Failed to fetch Tranco download code.");
3940
}
4041
}
@@ -103,6 +104,7 @@ namespace duckdb
103104
if (res != CURLE_OK)
104105
{
105106
remove (temp_file.c_str ()); // Clean up the temporary file
107+
LogMessage ("ERROR", "Failed to download Tranco list: " + std::string (curl_easy_strerror (res)));
106108
throw std::runtime_error ("Failed to download Tranco list.");
107109
}
108110
}

src/utils/utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ namespace duckdb
4646

4747
if (res != CURLE_OK)
4848
{
49+
LogMessage ("ERROR", "Failed to download public suffix list: " + std::string (curl_easy_strerror (res)));
4950
throw std::runtime_error ("Failed to download public suffix list.");
5051
}
5152
}

0 commit comments

Comments
 (0)