use std::fmt;
#[derive(Debug)]
#[non_exhaustive]
pub enum Error {
SubscriberAlreadySet,
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Error::SubscriberAlreadySet => write!(
f,
"Fix: ensure `santh_tracing::init` is called exactly once per process"
),
}
}
}
impl std::error::Error for Error {}