#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("the app is not installed from a package")]
NotPackaged,
#[error("network error: {0}")]
Network(String),
#[error("Velopack error: {0}")]
Velopack(String),
#[error("an update is being applied already")]
Applying,
#[error("could not prepare for the update: {0}")]
Prepare(String),
#[error("another {command} is installed at {}", path.display())]
Taken {
command: String,
path: std::path::PathBuf,
},
#[error("could not change the command line on PATH: {0}")]
CliPath(String),
#[error(transparent)]
Io(#[from] std::io::Error),
}