summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Nguyen <benjamin.van.nguyen@gmail.com>2023-07-02 12:19:43 +0700
committerBenjamin Nguyen <benjamin.van.nguyen@gmail.com>2023-07-02 12:19:43 +0700
commit202fae12b0cb4c0ce0a948060104df855e9ec3c5 (patch)
tree431f6825a3584778599fa49d945197d944f5027d
parent2b1db8bcc843c3fa8b634df86f94716c75ca470a (diff)
Show proper error message if interrupt after traversal step
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index c9d4713..e97fd2c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -99,7 +99,10 @@ fn run() -> Result<(), Box<dyn Error>> {
};
if let Some(mut progress) = indicator {
- progress.mailbox().send(Message::RenderReady)?;
+ progress
+ .mailbox()
+ .send(Message::RenderReady)
+ .map_err(|_e| tree::error::Error::Terminated)?;
progress
.join_handle