Skip to content

Commit

Permalink
slightly reworded message to show the main parts first
Browse files Browse the repository at this point in the history
Co-authored-by: Ed Page <[email protected]>
  • Loading branch information
Cerber-Ursi and epage committed Feb 22, 2024
1 parent 07eb708 commit 51c8e0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cargo/core/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,8 @@ impl<'gctx> Workspace<'gctx> {
continue;
}
bail!(
"package `{}` is listed in default-members\n\
for workspace at {} but is not a member.",
"package `{}` is listed in default-members but is not a member\n\
for workspace at {}.",
path.display(),
root_manifest_path.display()
)
Expand Down
8 changes: 4 additions & 4 deletions tests/testsuite/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@ fn virtual_default_member_is_not_a_member() {
.with_status(101)
.with_stderr(
"\
error: package `[..]something-else` is listed in default-members\n\
for workspace at [..]Cargo.toml but is not a member.
error: package `[..]something-else` is listed in default-members but is not a member\n\
for workspace at [..]Cargo.toml.
",
)
.run();
Expand Down Expand Up @@ -1673,8 +1673,8 @@ fn excluded_default_members_still_must_be_members() {
.with_status(101)
.with_stderr(
"\
error: package `[..]bar` is listed in default-members\n\
for workspace at [..]foo/Cargo.toml but is not a member.
error: package `[..]bar` is listed in default-members but is not a member\n\
for workspace at [..]foo/Cargo.toml.
",
)
.run();
Expand Down

0 comments on commit 51c8e0e

Please sign in to comment.