Auto merge of #11401 - adam248:patch-1, r=ehuss

add newline char to `cargo install .` error message for easier reading.

I just noticed the `cargo install .` error message was not formatted very nicely.

Just added a newline char to make it cleaner.

Thanks
This commit is contained in:
bors 2022-11-25 13:34:10 +00:00
commit 79fe7573b0
2 changed files with 4 additions and 6 deletions

View File

@ -69,7 +69,7 @@ impl<'cfg, 'a> InstallablePackage<'cfg, 'a> {
if name == "." {
bail!(
"To install the binaries for the package in current working \
directory use `cargo install --path .`. \
directory use `cargo install --path .`. \n\
Use `cargo build` if you want to simply build the package."
)
}

View File

@ -327,11 +327,9 @@ fn missing_current_working_directory() {
cargo_process("install .")
.with_status(101)
.with_stderr(
"\
error: To install the binaries for the package in current working \
directory use `cargo install --path .`. Use `cargo build` if you \
want to simply build the package.
",
"error: To install the binaries for the package in current working \
directory use `cargo install --path .`. \n\
Use `cargo build` if you want to simply build the package.",
)
.run();
}