mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
fetchurl: fail on error
This commit is contained in:
committed by
Christian Helmuth
parent
033e333691
commit
d15b396202
@@ -120,6 +120,7 @@ static int fetchurl(Genode::Xml_node config_node)
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, verbose);
|
||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, true);
|
||||
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L);
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &fd);
|
||||
|
||||
Reference in New Issue
Block a user