diagnostics

This commit is contained in:
Marcello Stanisci 2018-05-18 14:49:56 +02:00
parent c9758f75f3
commit e746e0bbbc
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -148,6 +148,13 @@ TEH_RESPONSE_reply_json (struct MHD_Connection *connection,
JSON_INDENT(2));
if (NULL == json_str)
{
/**
* This log helps to figure out which
* function called this one and assert-failed.
*/
TALER_LOG_ERROR ("Aborting json-packing for HTTP code: %u\n",
response_code);
GNUNET_assert (0);
return MHD_NO;
}