From: Camelid <37223377+camelid@users.noreply.github.com> Date: Thu, 27 Aug 2020 02:51:53 +0000 (-0700) Subject: Remove periods from error messages X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a9424d978a966b5141c46a47998ac0a7cc0bd6ae;p=cargo.git Remove periods from error messages --- diff --git a/src/cargo/core/compiler/mod.rs b/src/cargo/core/compiler/mod.rs index 45aa272f7..54b9668df 100644 --- a/src/cargo/core/compiler/mod.rs +++ b/src/cargo/core/compiler/mod.rs @@ -291,7 +291,7 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc) -> Car &mut |line| on_stderr_line(state, line, package_id, &target, &mut output_options), ) .map_err(verbose_if_simple_exit_code) - .chain_err(|| format!("could not compile `{}`.", name))?; + .chain_err(|| format!("could not compile `{}`", name))?; } if rustc_dep_info_loc.exists() { @@ -614,7 +614,7 @@ fn rustdoc(cx: &mut Context<'_, '_>, unit: &Unit) -> CargoResult { &mut |line| on_stderr_line(state, line, package_id, &target, &mut output_options), false, ) - .chain_err(|| format!("could not document `{}`.", name))?; + .chain_err(|| format!("could not document `{}`", name))?; Ok(()) })) }