From c4f98f6ee58cb92d45c65cbe7c125d2ffcd0b93f Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Wed, 13 Mar 2024 16:51:49 +0800 Subject: [PATCH] feat: print error more verbosely --- server/src/bot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/bot.rs b/server/src/bot.rs index a9329fe..239178f 100644 --- a/server/src/bot.rs +++ b/server/src/bot.rs @@ -496,7 +496,7 @@ pub async fn answer(bot: Bot, msg: Message, cmd: Command, pool: DbPool) -> Respo bot_send_message_handle_length( &bot, &msg, - &format!("Failed to create github comments: {err}."), + &format!("Failed to create github comments: {err:?}."), ) .await?; } @@ -515,7 +515,7 @@ pub async fn answer(bot: Bot, msg: Message, cmd: Command, pool: DbPool) -> Respo bot_send_message_handle_length( &bot, &msg, - &format!("Failed to get pr info: {err}."), + &format!("Failed to get pr info: {err:?}."), ) .await?; }