wget: print a message on an error

To give the user some clue on what's going.
This commit is contained in:
YAMAMOTO Takashi 2021-02-04 11:07:40 +09:00 committed by Xiang Xiao
parent f14e98c942
commit 6d1d6e76ea

View File

@ -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;
}