#[derive(Clone, Copy, Debug, thiserror::Error)]
pub(crate) enum Error {
#[error("Unable to load a valid configuration")]
ConfigLoad,
#[error("Unable to initialize tracing")]
TracingInit,
#[error("bartoc is shutting down")]
Shutdown,
#[error("Invalid bartoc message for bartos")]
InvalidBartocMessage,
#[error("Unable to get stdout handle")]
StdoutHandle,
#[error("Unable to get stderr handle")]
StderrHandle,
#[error("There is no valid data directory")]
DataDir,
#[error("No redb database path specified")]
NoRedbPath,
#[cfg(unix)]
#[error("No shell found in environment variables")]
NoShell,
}