auto merge of #14884 : huonw/rust/getoptsfail, r=alexcrichton

This commit is contained in:
bors 2014-06-14 10:36:46 +00:00
commit d64f18c490
7 changed files with 39 additions and 32 deletions

View file

@ -20,7 +20,7 @@ pub fn main() {
match getopts(args.as_slice(), opts.as_slice()) {
Ok(ref m) =>
assert!(!m.opt_present("b")),
Err(ref f) => fail!("{:?}", (*f).clone().to_err_msg())
Err(ref f) => fail!("{}", *f)
};
}