mirror of
https://github.com/pcvolkmer/arsnova-client.git
synced 2025-04-19 19:16:51 +00:00
show current error in tui example
This commit is contained in:
parent
45166015ea
commit
9f9e616893
@ -87,10 +87,10 @@ async fn main() -> Result<(), String> {
|
|||||||
let _ = disable_raw_mode().map_err(|_| ()).map_err(|_| ());
|
let _ = disable_raw_mode().map_err(|_| ()).map_err(|_| ());
|
||||||
"Cannot request room information!".to_string()
|
"Cannot request room information!".to_string()
|
||||||
})?;
|
})?;
|
||||||
let room_stats = client.get_room_stats(&cli.room).await.map_err(|_| {
|
let room_stats = client.get_room_stats(&cli.room).await.map_err(|err| {
|
||||||
let _ = stdout().execute(LeaveAlternateScreen).map_err(|_| ());
|
let _ = stdout().execute(LeaveAlternateScreen).map_err(|_| ());
|
||||||
let _ = disable_raw_mode().map_err(|_| ()).map_err(|_| ());
|
let _ = disable_raw_mode().map_err(|_| ()).map_err(|_| ());
|
||||||
"Cannot request room stats!".to_string()
|
err.to_string()
|
||||||
})?;
|
})?;
|
||||||
let title = format!(
|
let title = format!(
|
||||||
"Live Feedback: {} ({}) - 👥: {}",
|
"Live Feedback: {} ({}) - 👥: {}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user