reinhardt_admin_cli/migrate_v2/
error.rs1use std::path::PathBuf;
4
5use thiserror::Error;
6
7#[derive(Debug, Error)]
9pub enum MigrateV2Error {
10 #[error("unknown --skip rule(s): {0}")]
12 UnknownSkipRules(String),
13 #[error("failed to walk source tree: {0}")]
15 Walk(#[from] walkdir::Error),
16 #[error("I/O operation failed: {0}")]
18 Io(#[from] std::io::Error),
19 #[error("path has no parent directory: {}", .0.display())]
21 MissingParent(PathBuf),
22}
23
24pub type Result<T> = std::result::Result<T, MigrateV2Error>;