From e0d8615eceacd52b2c619c503f133277fb371718 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 11 Apr 2003 07:39:16 +0000 Subject: [PATCH] show a verbose warning message in case cookie-saving fails, after Ralph Mitchell's notification. --- lib/url.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/url.c b/lib/url.c index 9f48db7fcf..5cb8fe4df3 100644 --- a/lib/url.c +++ b/lib/url.c @@ -210,9 +210,11 @@ CURLcode Curl_close(struct SessionHandle *data) free(data->state.headerbuff); #ifndef CURL_DISABLE_HTTP - if(data->set.cookiejar) + if(data->set.cookiejar) { /* we have a "destination" for all the cookies to get dumped to */ - Curl_cookie_output(data->cookies, data->set.cookiejar); + if(Curl_cookie_output(data->cookies, data->set.cookiejar)) + infof(data, "WARNING: failed to save cookies in given jar\n"); + } Curl_cookie_cleanup(data->cookies); #endif