From d71a172eaec5e13653bc2cf06c9c0e3c62e9601a Mon Sep 17 00:00:00 2001 From: Dan Aloni Date: Thu, 12 Sep 2019 17:03:48 +0300 Subject: [PATCH] profiles: improve formatting of some new error messages --- src/cargo/core/profiles.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/core/profiles.rs b/src/cargo/core/profiles.rs index c308d9799..1092df9f9 100644 --- a/src/cargo/core/profiles.rs +++ b/src/cargo/core/profiles.rs @@ -214,13 +214,13 @@ impl Profiles { Some(name) => { let name = name.to_owned(); if set.get(&name).is_some() { - failure::bail!("Inheritance loop of profiles cycles with {}", name); + failure::bail!("Inheritance loop of profiles cycles with profile '{}'", name); } set.insert(name.clone()); match profiles.get(&name) { None => { - failure::bail!("Profile {} not found in Cargo.toml", name); + failure::bail!("Profile '{}' not found in Cargo.toml", name); } Some(parent) => self.process_chain(&name, parent, set, result, profiles), } @@ -228,8 +228,8 @@ impl Profiles { None => { failure::bail!( "An 'inherits' directive is needed for all \ - profiles that are not 'dev' or 'release. Here \ - it is missing from {}", + profiles that are not 'dev' or 'release'. Here \ + it is missing from '{}'", name ); }