Skip to content

Commit

Permalink
fix: Stop progress indicator crashing into stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
bootandy committed Jan 29, 2023
1 parent 184d1ec commit 7efdf63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ fn main() {
}
};

if indicator.data.no_permissions.load(ORDERING) {
let failed_permissions = indicator.data.no_permissions.load(ORDERING);
indicator.stop();
// Must have stopped indicator before we print to stderr
if failed_permissions {
eprintln!("Did not have permissions for all directories");
}
indicator.stop();

if let Some(root_node) = tree {
draw_it(
Expand Down

0 comments on commit 7efdf63

Please sign in to comment.