mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
fix: Stop progress indicator crashing into stderr
This commit is contained in:
+4
-2
@@ -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");
|
eprintln!("Did not have permissions for all directories");
|
||||||
}
|
}
|
||||||
indicator.stop();
|
|
||||||
|
|
||||||
if let Some(root_node) = tree {
|
if let Some(root_node) = tree {
|
||||||
draw_it(
|
draw_it(
|
||||||
|
|||||||
Reference in New Issue
Block a user