diff --git a/src/cargo/ops/cargo_install.rs b/src/cargo/ops/cargo_install.rs index dd22cc8efb6..ea933ce0814 100644 --- a/src/cargo/ops/cargo_install.rs +++ b/src/cargo/ops/cargo_install.rs @@ -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." ) } diff --git a/tests/testsuite/install.rs b/tests/testsuite/install.rs index dc473c7198f..ebfe10560f6 100644 --- a/tests/testsuite/install.rs +++ b/tests/testsuite/install.rs @@ -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(); }