diff options
author | Erich Eckner <git@eckner.net> | 2018-11-13 06:09:10 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-13 06:09:10 +0100 |
commit | 4c2f86735129025ff895a4dacc2aa518640c477a (patch) | |
tree | d6f9d1b60c2f701827d2230d5043cae645cd2359 /input_gadgets.c | |
parent | 6fdbaef56d225c7c92049766c85e0645d86c567e (diff) | |
download | anzeige-4c2f86735129025ff895a4dacc2aa518640c477a.tar.xz |
input_gadgets.c: more verbose error message if curl_easy_perform() failed
Diffstat (limited to 'input_gadgets.c')
-rw-r--r-- | input_gadgets.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/input_gadgets.c b/input_gadgets.c index ab5d448..b1d2619 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -382,7 +382,12 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len) res = curl_easy_perform(curl_handle); curl_easy_cleanup(curl_handle); if (res != CURLE_OK) { - fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res)); + fprintf( + stderr, + "curl_easy_perform(%s) failed: %s\n", + "https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_DWD_STAT/Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMDWD_COMMUNEUNION_DE.zip", + curl_easy_strerror(res) + ); free(chunk.memory); return NULL; } |