Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/37479 )
Change subject: curl: Handle errors in curl_easy_perform() ......................................................................
curl: Handle errors in curl_easy_perform()
Not much we can do, but at least warn the user that something went wrong.
Change-Id: I96374d1b153113a302fa98c27873db863a22f77e Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org --- M curl.c 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/79/37479/1
diff --git a/curl.c b/curl.c index 6895c62..51c4a11 100644 --- a/curl.c +++ b/curl.c @@ -110,6 +110,9 @@
/* Fetch the file */ res = curl_easy_perform(curl); + if (res != CURLE_OK) + printf("Error while downloading %s: %s\n", filename, + curl_easy_strerror(res));
/* Close file */ fclose(file);