Skip to content

Commit

Permalink
Show proper error message if interrupt after traversal step
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Jul 2, 2023
1 parent 2b1db8b commit 202fae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 202fae1

@solidiquis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can wait until the next release... not the biggest deal in the world.

Please sign in to comment.