use std::{num, time};
use miette::Diagnostic;
use thiserror::Error;
use crate::external;
#[derive(Error, Debug, Diagnostic)]
pub enum Error {
#[error("failed to interact with the git config: {0}")]
#[diagnostic(transparent)]
GitIo(external::Error),
#[error("failed converted epoch int between types: {0}")]
#[diagnostic(
url(docsrs),
code(mit_commit_message_lints::relates::vcs::error::epoch_convert)
)]
EpochConvert(num::TryFromIntError),
#[error("failed to get system time: {0}")]
#[diagnostic(
url(docsrs),
code(mit_commit_message_lints::relates::vcs::error::system_time)
)]
SystemTime(time::SystemTimeError),
}