aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_parsing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-16 15:07:53 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-16 15:07:53 +0100
commit17865db5fc19e768200fabee5aa173106d96507b (patch)
tree44758771c8dde1c487f581811daf76f1e0425b9c /src/mint/taler-mint-httpd_parsing.c
parent7fe250407c440e59bece248747ffe8b29a8833b3 (diff)
fixing JSON syntax, adding missing commas, adding spaces for consistency
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.c')
-rw-r--r--src/mint/taler-mint-httpd_parsing.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.c b/src/mint/taler-mint-httpd_parsing.c
index 7d3f3b5e6..550a89224 100644
--- a/src/mint/taler-mint-httpd_parsing.c
+++ b/src/mint/taler-mint-httpd_parsing.c
@@ -285,7 +285,7 @@ GNUNET_MINT_parse_navigate_json (struct MHD_Connection *connection,
path = json_array ();
va_start (argp, root);
- ret = 2;
+ ret = 2; /* just not any of the valid return values */
while (2 == ret)
{
enum TALER_MINT_JsonNavigationCommand command
@@ -307,9 +307,11 @@ GNUNET_MINT_parse_navigate_json (struct MHD_Connection *connection,
ret = (MHD_YES ==
TALER_MINT_reply_json_pack (connection,
MHD_HTTP_BAD_REQUEST,
- "{s:s,s:o}",
+ "{s:s, s:s, s:o}",
"error",
"missing field in JSON",
+ "field",
+ fname,
"path",
path))
? GNUNET_NO : GNUNET_SYSERR;
@@ -367,7 +369,7 @@ GNUNET_MINT_parse_navigate_json (struct MHD_Connection *connection,
ret = (MHD_YES ==
TALER_MINT_reply_json_pack (connection,
MHD_HTTP_BAD_REQUEST,
- "{s:s,s:o}",
+ "{s:s, s:o}",
"error",
"malformed binary data in JSON",
"path",
@@ -432,7 +434,7 @@ GNUNET_MINT_parse_navigate_json (struct MHD_Connection *connection,
ret = (MHD_YES ==
TALER_MINT_reply_json_pack (connection,
MHD_HTTP_BAD_REQUEST,
- "{s:s, s:i, s:i s:o}",
+ "{s:s, s:i, s:i, s:o}",
"error", "wrong JSON field type",
"type_expected", typ,
"type_actual", json_typeof (root),