From cb66f2dfd9164430b3dd22484075ac421d2464dc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 2 Jun 2014 17:47:31 +0000 Subject: -have default line, complain about missing options to log --- src/conversation/conversation_api.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/conversation/conversation_api.c') diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c index 24cd52eb2..a9efb7495 100644 --- a/src/conversation/conversation_api.c +++ b/src/conversation/conversation_api.c @@ -667,9 +667,20 @@ GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg, "CONVERSATION", "LINE", &line)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "CONVERSATION", + "LINE"); return NULL; + } if (line >= (1 << 31)) + { + GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, + "CONVERSATION", + "LINE", + _("number too large")); return NULL; + } phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone); if (GNUNET_OK != GNUNET_CRYPTO_get_peer_identity (cfg, -- cgit v1.2.3