From ba276e6bb2e07815062332bde142e3a9a5588e75 Mon Sep 17 00:00:00 2001 From: aidanaden Date: Fri, 21 Jun 2024 01:37:14 +0800 Subject: [PATCH] feat: include rpc error --- rm-main/src/app.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rm-main/src/app.rs b/rm-main/src/app.rs index bc502f4..c0d34cd 100644 --- a/rm-main/src/app.rs +++ b/rm-main/src/app.rs @@ -43,9 +43,11 @@ impl Ctx { session_info, }); } - Err(_) => { + Err(e) => { let url = config.connection.url; - return Err(Error::msg(format!("Connection to transmission failed!\nPlease verify connection and credentials to {url}"))); + return Err(Error::msg(format!( + "{e}\nIs the connection info in {url} correct?" + ))); } } }