mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Add bot registration error log
This commit is contained in:
@@ -54,7 +54,9 @@ pub async fn register(user_id: UserId, message_text: &str) -> RegisterStatus {
|
|||||||
|
|
||||||
let register_request_status = make_register_request(user_id, &bot_username, token).await;
|
let register_request_status = make_register_request(user_id, &bot_username, token).await;
|
||||||
|
|
||||||
if register_request_status.is_err() {
|
if let Err(err) = register_request_status {
|
||||||
|
log::error!("Bot reg error: {:?}", err);
|
||||||
|
|
||||||
return RegisterStatus::RegisterFail;
|
return RegisterStatus::RegisterFail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user