[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: simplify error message (#7897)
From: |
gnunet |
Subject: |
[gnunet] branch master updated: simplify error message (#7897) |
Date: |
Fri, 22 Sep 2023 11:59:08 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new faa06e9cd simplify error message (#7897)
faa06e9cd is described below
commit faa06e9cdfe5777380f7d1520599952d63ecd650
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Sep 22 11:58:58 2023 +0200
simplify error message (#7897)
---
src/curl/curl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/curl/curl.c b/src/curl/curl.c
index ee4b568df..bb935d183 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -679,10 +679,11 @@ GNUNET_CURL_download_get_result_ (struct
GNUNET_CURL_DownloadBuffer *db,
/* No content type or explicitly not JSON, refuse to parse
(but keep response code) */
if (0 != db->buf_size)
+ {
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Did NOT detect response `%.*s' as JSON\n",
- (int) db->buf_size,
- (const char *) db->buf);
+ "Expected content type was `application/json', got `%s'\n",
+ ct);
+ }
return NULL;
}
if (MHD_HTTP_NO_CONTENT == *response_code)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: simplify error message (#7897),
gnunet <=