1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 21:17:46 +00:00

base64, cp: fix build

This commit is contained in:
Michael Gehring 2015-01-24 03:56:37 +01:00
parent c32caba9b6
commit cb1dd390bb
2 changed files with 3 additions and 5 deletions

View file

@ -129,7 +129,7 @@ fn decode(input: &mut Reader, ignore_garbage: bool) {
}
}
Err(s) => {
crash!(1, "error: {} ({})", s.description(), s.detail().unwrap_or("".to_string()));
crash!(1, "error: {} ({:?})", s.description(), s);
}
}
}

View file

@ -117,8 +117,7 @@ fn copy(matches: getopts::Matches) {
let io_result = fs::copy(source, &dest);
if io_result.is_err() {
let err = io_result.unwrap_err();
if let Err(err) = io_result {
error!("error: {}", err.to_string());
panic!();
}
@ -142,8 +141,7 @@ fn copy(matches: getopts::Matches) {
let io_result = fs::copy(source, &full_dest);
if io_result.is_err() {
let err = io_result.unwrap_err();
if let Err(err) = io_result {
error!("error: {}", err.to_string());
panic!()
}