1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

Remove duplicate header in error messages.

This commit is contained in:
Joseph Crail 2015-05-28 23:23:54 -04:00
parent eb2247fc1c
commit 1c405d9c91

View file

@ -46,7 +46,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
opts.optflag("V", "version", "output version information and exit"); opts.optflag("V", "version", "output version information and exit");
let matches = match opts.parse(&args[1..]) { let matches = match opts.parse(&args[1..]) {
Ok(m) => m, Ok(m) => m,
Err(e) => { crash!(1, "error: {}", e) } Err(e) => { crash!(1, "{}", e) }
}; };
let mode = if matches.opt_present("help") { let mode = if matches.opt_present("help") {
@ -63,7 +63,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
Some(s) => match s.parse() { Some(s) => match s.parse() {
Ok(s) => s, Ok(s) => s,
Err(e)=> { Err(e)=> {
crash!(1, "error: Argument to option 'wrap' improperly formatted: {}", e); crash!(1, "Argument to option 'wrap' improperly formatted: {}", e);
} }
}, },
None => 76 None => 76
@ -122,7 +122,7 @@ fn decode(input: &mut FileOrStdReader, ignore_garbage: bool) {
} }
} }
Err(s) => { Err(s) => {
crash!(1, "error: {} ({:?})", s.description(), s); crash!(1, "{} ({:?})", s.description(), s);
} }
} }
} }