Skip to content

Commit

Permalink
Revise
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Sep 3, 2024
1 parent 86a23cc commit a39696d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/subcommand/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub(crate) fn run(root: &Utf8Path) -> Result {
}

if !dirs.is_empty() {
dirs.sort();
return Err(Error::EmptyDirectory {
paths: dirs
.into_iter()
Expand Down
1 change: 1 addition & 0 deletions src/subcommand/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub(crate) fn run(root: &Utf8Path) -> Result {
}

if !dirs.is_empty() {
dirs.sort();
return Err(Error::EmptyDirectory {
paths: dirs
.into_iter()
Expand Down
2 changes: 1 addition & 1 deletion tests/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fn multiple_empty_directory_error() {
.args(["create", "."])
.current_dir(&dir)
.assert()
.stderr("error: empty directories `foo` and `bar`\n")
.stderr("error: empty directories `bar` and `foo`\n")
.failure();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn multiple_empty_directories() {
.args(["verify", "."])
.current_dir(&dir)
.assert()
.stderr("error: empty directories `foo` and `bar`\n")
.stderr("error: empty directories `bar` and `foo`\n")
.failure();
}

Expand Down

0 comments on commit a39696d

Please sign in to comment.