Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kimono-koans committed Mar 20, 2024
1 parent ac89b9b commit 867e635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parse/snaps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ impl MapOfSnaps {
opt_debug: bool,
) -> Vec<PathBuf> {
const BTRFS_COMMAND_REQUIRES_ROOT: &str =
"User must have super user permissions to determine the location of btrfs snapshots";
"btrfs mounts detected. User must have super user permissions to determine the location of btrfs snapshots";

if let Err(err) = user_has_effective_root(&BTRFS_COMMAND_REQUIRES_ROOT) {
if let Err(_err) = user_has_effective_root(&BTRFS_COMMAND_REQUIRES_ROOT) {
static USER_HAS_ROOT_WARNING: Once = Once::new();

USER_HAS_ROOT_WARNING.call_once(|| {
eprintln!("WARN: {}", err.to_string());
eprintln!("WARN: {}", BTRFS_COMMAND_REQUIRES_ROOT);
});
return Vec::new();
}
Expand Down

0 comments on commit 867e635

Please sign in to comment.