improve app close failure display

This commit is contained in:
Skyler Hawthorne 2022-10-04 10:35:15 -04:00
parent bf378e71b0
commit beb3427bfb
2 changed files with 34 additions and 50 deletions

View file

@ -94,7 +94,17 @@ pub async fn test_key_sequences(
tokio::time::timeout(TIMEOUT, event_loop).await?;
}
app.close().await?;
let errs = app.close().await;
if !errs.is_empty() {
log::error!("Errors closing app");
for err in errs {
log::error!("{}", err);
}
bail!("Error closing app");
}
Ok(())
}