1 2 3 4 5 6 7 8 9 10 11 12 13
use std::{io, path::PathBuf};
use displaydoc::Display;
use thiserror::Error;
#[derive(Error, Debug, Display)]
/// Errors thrown by the Up Crate.
pub enum UpError {
/// Failed to delete '{path}'.
DeleteError { path: PathBuf, source: io::Error },
/// IO Failure for path '{path}'.
IoError { path: PathBuf, source: io::Error },
}