From ea6243ec124dea3416cdd38b9f0b67ecdb44ef40 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 4 Apr 2024 18:53:32 +0200 Subject: [PATCH] better debug messages --- src/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index 82fbe39..f33118a 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -167,7 +167,7 @@ pub fn handle_send_messages( && branch.choice == event.text) .collect(); if branches.len() != 1 { - error!("Expected 1 branch with ID '{}' and label '{}', but got {}! Aborting conversation.", chat.id, chat.label, branches.len()); + error!("Expected 1 branch with ID '{}', label '{}', choice '{}', but got {}! Aborting conversation.", event.conv_id, event.conv_label, event.text, branches.len()); continue; } let branch = branches[0];