more debug info
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled

This commit is contained in:
Akulij 2025-05-31 15:05:56 +05:00
parent 198c363038
commit 4eab8e1f26

View File

@ -157,6 +157,7 @@ async fn handle_callback(bot: Bot, mut db: DB, bm: BotMessage, q: CallbackQuery)
);
match handler.call_args(vec![jsuser]) {
Ok(v) => {
println!("OK branch");
if v.is_bool() {
v.to_bool().unwrap_or(true)
} else if v.is_int() {
@ -167,6 +168,7 @@ async fn handle_callback(bot: Bot, mut db: DB, bm: BotMessage, q: CallbackQuery)
}
}
Err(err) => {
println!("ERR branch");
error!("Failed to get return of handler, err: {err}");
// falling back to propagation
true