Commit 6faa83bc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

if no errorbuffer string was provided when a return code was returned, use

the curl_easy_strerror() function to provide one
parent 9fb4e019
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3461,7 +3461,8 @@ operate(struct Configurable *config, int argc, char *argv[])
                    CURL_CA_CERT_ERRORMSG2 );
          }
          else
            fprintf(config->errors, "curl: (%d) %s\n", res, errorbuffer);
            fprintf(config->errors, "curl: (%d) %s\n", res,
                    errorbuffer[0]? errorbuffer: curl_easy_strerror(res));
        }
#endif