mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Remove duplicate header in error messages.
This commit is contained in:
parent
eb2247fc1c
commit
1c405d9c91
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
opts.optflag("V", "version", "output version information and exit");
|
||||
let matches = match opts.parse(&args[1..]) {
|
||||
Ok(m) => m,
|
||||
Err(e) => { crash!(1, "error: {}", e) }
|
||||
Err(e) => { crash!(1, "{}", e) }
|
||||
};
|
||||
|
||||
let mode = if matches.opt_present("help") {
|
||||
|
@ -63,7 +63,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
Some(s) => match s.parse() {
|
||||
Ok(s) => s,
|
||||
Err(e)=> {
|
||||
crash!(1, "error: Argument to option 'wrap' improperly formatted: {}", e);
|
||||
crash!(1, "Argument to option 'wrap' improperly formatted: {}", e);
|
||||
}
|
||||
},
|
||||
None => 76
|
||||
|
@ -122,7 +122,7 @@ fn decode(input: &mut FileOrStdReader, ignore_garbage: bool) {
|
|||
}
|
||||
}
|
||||
Err(s) => {
|
||||
crash!(1, "error: {} ({:?})", s.description(), s);
|
||||
crash!(1, "{} ({:?})", s.description(), s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue