Plug back the error manager 13/11113/3
Sylvestre Ledru [Wed, 27 Mar 2013 15:47:48 +0000 (16:47 +0100)]
Change-Id: Ifc7ad23cd73df43c97d991d1b2897260eb968d36

scilab/modules/fileio/src/c/dlManager.c

index 3d8d436..2619439 100644 (file)
@@ -305,6 +305,13 @@ char *downloadFile(char *url, char *dest, char *username, char *password, char *
 
         init_string(&buffer);
 
+        res = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
+        if (res != CURLE_OK)
+        {
+            Scierror(999, "Failed to set error buffer [%d]\n", res);
+            return NULL;
+        }
+
         if (dest == NULL)
         {
             /* No second argument provided */