Skip to content

Commit

Permalink
feat: include rpc error
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Jun 20, 2024
1 parent 98a2bd1 commit ba276e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rm-main/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
)));
}
}
}
Expand Down

0 comments on commit ba276e6

Please sign in to comment.