mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
vere: improves error handling in pill download
This commit is contained in:
parent
2cf29af98c
commit
1b1d6cb30a
@ -259,10 +259,12 @@ _king_get_atom(c3_c* url_c)
|
||||
if ( CURLE_OK != result ) {
|
||||
u3l_log("failed to fetch %s: %s\n",
|
||||
url_c, curl_easy_strerror(result));
|
||||
u3_king_bail();
|
||||
exit(1);
|
||||
}
|
||||
if ( 300 <= cod_l ) {
|
||||
u3l_log("error fetching %s: HTTP %ld\n", url_c, cod_l);
|
||||
u3_king_bail();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user