Added debugs.
[crypto.git] / lib / silcclient / client_prvmsg.c
index a29ad586ad57e268ba8c924269576f1163ad8289..1f7eaf019d90a79dc514eee760b5bdbdf977cad4 100644 (file)
@@ -64,8 +64,11 @@ SilcBool silc_client_send_private_message(SilcClient client,
 
   if (silc_unlikely(!client || !conn || !client_entry))
     return FALSE;
-  if (silc_unlikely(flags & SILC_MESSAGE_FLAG_SIGNED && !hash))
+  if (silc_unlikely(flags & SILC_MESSAGE_FLAG_SIGNED && !hash)) {
+    SILC_LOG_ERROR(("Cannot send signed message without hash, missing "
+                   "arguments"));
     return FALSE;
+  }
   if (silc_unlikely(conn->internal->disconnected))
     return FALSE;