Added debugs.
[crypto.git] / lib / silcclient / client_channel.c
index 4fcfb08c214c2667785f1767f8a372c045254f25..2075d8073b0c6230c6e605b6d7a1aebd08430e17 100644 (file)
@@ -68,8 +68,11 @@ SilcBool silc_client_send_channel_message(SilcClient client,
 
   if (silc_unlikely(!client || !conn || !channel))
     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;