1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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),
}