better debug messages

This commit is contained in:
yuni 2024-04-04 18:53:32 +02:00
parent b1c78e4ccb
commit ea6243ec12

View file

@ -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];