Commit 2465ff99 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

when saving in a cookie jar fails, include the file name in the error message

to make it easier to track down
parent d10a941d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -216,7 +216,8 @@ CURLcode Curl_close(struct SessionHandle *data)
  if(data->set.cookiejar) {
    /* we have a "destination" for all the cookies to get dumped to */
    if(Curl_cookie_output(data->cookies, data->set.cookiejar))
      infof(data, "WARNING: failed to save cookies in given jar\n");
      infof(data, "WARNING: failed to save cookies in %s\n",
            data->set.cookiejar);
  }

  if( !data->share || (data->cookies != data->share->cookies) ) {