conf/accounts.rs: print info when displaying watch error

pull/144/head
Manos Pitsidianakis 2021-09-05 12:38:06 +03:00
parent c8da6d2049
commit 72a2ba20dc
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 1 deletions

View File

@ -1081,7 +1081,10 @@ impl Account {
Err(e) => { Err(e) => {
self.sender self.sender
.send(ThreadEvent::UIEvent(UIEvent::StatusEvent( .send(ThreadEvent::UIEvent(UIEvent::StatusEvent(
StatusEvent::DisplayMessage(e.to_string()), StatusEvent::DisplayMessage(format!(
"Account `{}` watch action returned error: {}",
&self.name, e
)),
))) )))
.unwrap(); .unwrap();
} }