wget: print a message on an error
To give the user some clue on what's going.
This commit is contained in:
parent
f14e98c942
commit
6d1d6e76ea
@ -176,7 +176,11 @@ int main(int argc, FAR char *argv[])
|
||||
ctx.url = CONFIG_EXAMPLES_WGET_URL;
|
||||
}
|
||||
|
||||
webclient_perform(&ctx);
|
||||
int ret = webclient_perform(&ctx);
|
||||
if (ret != 0)
|
||||
{
|
||||
printf("webclient_perform failed with %d\n", ret);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user