summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-03 23:42:47 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-03 23:42:47 +0100
commit232606fb57e3c74b62aa78d49225e2bb3c0c9ab4 (patch)
treeef4d74eb32bd577868fa77f625d4b2685086ff9f /src/json
parentf4f86d2b0149231e95b81f12a607c670ad74f02f (diff)
downloadexchange-232606fb57e3c74b62aa78d49225e2bb3c0c9ab4.tar.gz
exchange-232606fb57e3c74b62aa78d49225e2bb3c0c9ab4.tar.bz2
exchange-232606fb57e3c74b62aa78d49225e2bb3c0c9ab4.zip
add IF NOT EXISTS for indices
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json/json.c b/src/json/json.c
index 6de299319..f0c0aff57 100644
--- a/src/json/json.c
+++ b/src/json/json.c
@@ -81,7 +81,8 @@ TALER_JSON_get_error_code (const json_t *json)
so we are dealing with a missing error code here. */
if (NULL == jc)
{
- GNUNET_break_op (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Expected Taler error code `code' in JSON, but field does not exist!\n");
return TALER_EC_INVALID;
}
if (json_is_integer (jc))