Auto merge of #1895 - achanda:1892, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 13 Aug 2015 16:03:23 +0000 (16:03 +0000)
committerbors <bors@rust-lang.org>
Thu, 13 Aug 2015 16:03:23 +0000 (16:03 +0000)
Closes #1892

1  2 
src/cargo/ops/registry.rs

index 2591dd2d1f807898261ebf71f88b75aa35ff6a93,57ea235d7611aa909ce499e9be99bb574b1c3837..9f9b035f8048db6cce72e6cf8c0d429606a6c295
@@@ -278,10 -278,10 +278,10 @@@ pub fn modify_owners(config: &Config, o
      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 crate {}",
                                                          v, name)));
              try!(registry.add_owners(&name, &v).map_err(|e| {
-                 human(format!("failed to add owners: {}", e))
+                 human(format!("failed to add owners to crate {}: {}", name, e))
              }));
          }
          None => {}
      match opts.to_remove {
          Some(ref v) => {
              let v = v.iter().map(|s| &s[..]).collect::<Vec<_>>();
 -            try!(config.shell().status("Owner", format!("removing `{:?}` from `{}`",
 +            try!(config.shell().status("Owner", format!("removing {:?} from crate {}",
                                                          v, name)));
              try!(registry.remove_owners(&name, &v).map_err(|e| {
-                 human(format!("failed to remove owners: {}", e))
+                 human(format!("failed to remove owners from crate {}: {}", name, e))
              }));
          }
          None => {}