diff options
author | Skyler Hawthorne | 2022-10-17 01:40:40 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-10-19 02:31:39 +0000 |
commit | e645804b0a8e42c9fb9ef8259a9b2ad47a57a6e6 (patch) | |
tree | 37aa2579e0dd2b91f4c506882874730d3f41161c /helix-term/src/application.rs | |
parent | 52ba550098745b463f59211a0172c334daef350b (diff) |
Editor::flush_writes returns an error
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 6ca5b657..b4b4a675 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -977,7 +977,10 @@ impl Application { errs.push(err); }; - self.editor.flush_writes().await; + if let Err(err) = self.editor.flush_writes().await { + log::error!("Error writing: {}", err); + errs.push(err); + } if self.editor.close_language_servers(None).await.is_err() { log::error!("Timed out waiting for language servers to shutdown"); |