Do not print extra newlines on error
authorAbhishek Chanda <abhishek.chanda@emc.com>
Tue, 11 Aug 2015 01:15:41 +0000 (18:15 -0700)
committerAbhishek Chanda <abhishek.chanda@emc.com>
Tue, 11 Aug 2015 01:15:41 +0000 (18:15 -0700)
Closes #1878

src/cargo/ops/registry.rs

index bcc9f3a14cd342b8a863b0d98a91d5a4b1e2086a..ee2e78f5252617765bf55853b292f953eb602eff 100644 (file)
@@ -278,7 +278,7 @@ pub fn modify_owners(config: &Config, opts: &OwnersOptions) -> CargoResult<()> {
     match opts.to_add {
         Some(ref v) => {
             let v = v.iter().map(|s| &s[..]).collect::<Vec<_>>();
-            try!(config.shell().status("Owner", format!("adding `{:#?}` to `{}`",
+            try!(config.shell().status("Owner", format!("adding `{:?}` to `{}`",
                                                         v, name)));
             try!(registry.add_owners(&name, &v).map_err(|e| {
                 human(format!("failed to add owners: {}", e))