Skip to content

Commit

Permalink
Update message
Browse files Browse the repository at this point in the history
  • Loading branch information
aleury committed Sep 8, 2024
1 parent f3e2d6e commit eef081c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> anyhow::Result<()> {
sp.clear();

if results.is_empty() {
println!("The directory is empty.");
println!("No files found.");
} else {
println!("*** Top {} largest files ***", results.len());
for (size, path) in results {
Expand Down
2 changes: 1 addition & 1 deletion tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn binary_reports_that_the_directory_is_empty_if_it_contains_zero_files() {
.arg(dir.path())
.assert()
.success()
.stdout(predicates::str::contains("The directory is empty."));
.stdout(predicates::str::contains("No files found."));
}

#[test]
Expand Down

0 comments on commit eef081c

Please sign in to comment.