mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
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:
commit
79fe7573b0
@ -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."
|
||||
)
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user