Improve error handling by using std lib rust code #4

Open
isa wants to merge 2 commits from isa/citadel-tools:error_handling into master
Showing only changes of commit 96f364cfe8 - Show all commits

View File

@ -255,7 +255,7 @@ fn install_image(arg_matches: &ArgMatches) -> Result<(), Box<dyn std::error::Err
if image_dest.exists() {
rotate(&image_dest)?;
}
util::rename(source, &image_dest);
util::rename(source, &image_dest)?;
Ok(())
}