Skip to content

Commit

Permalink
Additional verbose status for 'No (git) Cargo.toml' line
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum committed Aug 1, 2018
1 parent 2c22de1 commit 65ded47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/cargo/ops/cargo_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,15 @@ fn check_not_dirty(p: &Package, src: &PathSource, config: &Config) -> CargoResul
}
config.shell().verbose(|shell| {
shell.warn(format!(
"No (git) Cargo.toml found at ({})",
path.display()
"No (git) Cargo.toml found at `{}` in workdir `{}`",
path.display(),
workdir.display()
))
})?;
}
} else {
config.shell().verbose(|shell| {
shell.warn(format!("No (git) VCS found for ({})", p.root().display()))
shell.warn(format!("No (git) VCS found for `{}`", p.root().display()))
})?;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ fn exclude() {
"\
[WARNING] manifest has no description[..]
See http://doc.crates.io/manifest.html#package-metadata for more info.
[WARNING] No (git) Cargo.toml found at ([..])
[WARNING] No (git) Cargo.toml found at `[..]` in workdir `[..]`
[PACKAGING] foo v0.0.1 ([..])
[WARNING] [..] file `dir_root_1[/]some_dir[/]file` WILL be excluded [..]
See [..]
Expand Down Expand Up @@ -416,7 +416,7 @@ fn include() {
"\
[WARNING] manifest has no description[..]
See http://doc.crates.io/manifest.html#package-metadata for more info.
[WARNING] No (git) Cargo.toml found at ([..])
[WARNING] No (git) Cargo.toml found at `[..]` in workdir `[..]`
[PACKAGING] foo v0.0.1 ([..])
[ARCHIVING] [..]
[ARCHIVING] [..]
Expand Down

0 comments on commit 65ded47

Please sign in to comment.