ic_asset/error/load_rule.rs
1use std::path::PathBuf;
2use thiserror::Error;
3
4/// Errors related to loading an asset configuration rule.
5#[derive(Error, Debug)]
6pub enum LoadRuleError {
7 /// The match string could not be combined with the root directory to form a valid string.
8 #[error("Failed to combine {0} and {1} into a string (to be later used as a glob pattern)")]
9 FormGlobPatternFailed(PathBuf, String),
10
11 /// The glob pattern was not valid.
12 #[error("{0} is not a valid glob pattern")]
13 InvalidGlobPattern(String, #[source] globset::Error),
14}