You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/04 08:30:10 UTC

[incubator-nuttx-apps] branch master updated: wget: print a message on an error

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d1d6e7  wget: print a message on an error
6d1d6e7 is described below

commit 6d1d6e76ea3370f96a1751240c39809d26574016
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Feb 4 11:07:40 2021 +0900

    wget: print a message on an error
    
    To give the user some clue on what's going.
---
 examples/wget/wget_main.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/examples/wget/wget_main.c b/examples/wget/wget_main.c
index 4de57b8..edb8deb 100644
--- a/examples/wget/wget_main.c
+++ b/examples/wget/wget_main.c
@@ -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;
 }