auto merge of #14884 : huonw/rust/getoptsfail, r=alexcrichton
This commit is contained in:
commit
d64f18c490
7 changed files with 39 additions and 32 deletions
|
|
@ -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)
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue