diff options
author | Skyler Hawthorne | 2022-10-04 14:35:15 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-10-19 02:31:39 +0000 |
commit | beb3427bfbaa88bec8b4c683e342f85eb53ad77d (patch) | |
tree | eb65c84d200690db25c54100ea5c38f2a014a6ca /helix-term/tests/test | |
parent | bf378e71b012b4c108d11825cee6eea7b69778c2 (diff) |
improve app close failure display
Diffstat (limited to 'helix-term/tests/test')
-rw-r--r-- | helix-term/tests/test/helpers.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs index c2fbe953..5adc3354 100644 --- a/helix-term/tests/test/helpers.rs +++ b/helix-term/tests/test/helpers.rs @@ -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(()) } |