Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
use std::{
collections::BTreeMap,
fs,
- io::Read,
+ io::{self, Read},
path::{Path, PathBuf},
process::{Command, Stdio},
};
bail!("The source ISO file is not able to be installed automatically. Please try a more current one.");
}
}
- Err(_) => bail!("Could not run 'xorriso'. Please install it."),
+ Err(err) if err.kind() == io::ErrorKind::NotFound => {
+ bail!("Could not find the 'xorriso' binary. Please install it.")
+ }
+ Err(err) => bail!("unexpected error when trying to execute 'xorriso' - {err}"),
};
Ok(())