use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
pub enum CoreError {
#[error("could not determine home directory")]
NoHomeDir,
#[error("failed to load config from {path}: {source}")]
ConfigLoad {
path: PathBuf,
source: Box<dyn std::error::Error + Send + Sync>,
},
#[error("profile '{child}' extends unknown profile '{base}'")]
UnknownBaseProfile { child: String, base: String },
#[error(
"could not detect ecosystem from command '{command}' or working directory; use --profile"
)]
DetectionFailed { command: String },
}