Skip to content

Commit 79fe757

Browse files
committed
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
2 parents ee755e7 + 1b7e256 commit 79fe757

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/cargo/ops/cargo_install.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl<'cfg, 'a> InstallablePackage<'cfg, 'a> {
6969
if name == "." {
7070
bail!(
7171
"To install the binaries for the package in current working \
72-
directory use `cargo install --path .`. \
72+
directory use `cargo install --path .`. \n\
7373
Use `cargo build` if you want to simply build the package."
7474
)
7575
}

tests/testsuite/install.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,9 @@ fn missing_current_working_directory() {
327327
cargo_process("install .")
328328
.with_status(101)
329329
.with_stderr(
330-
"\
331-
error: To install the binaries for the package in current working \
332-
directory use `cargo install --path .`. Use `cargo build` if you \
333-
want to simply build the package.
334-
",
330+
"error: To install the binaries for the package in current working \
331+
directory use `cargo install --path .`. \n\
332+
Use `cargo build` if you want to simply build the package.",
335333
)
336334
.run();
337335
}

0 commit comments

Comments
 (0)