hg_git_fast_import/
error.rs1#[derive(Debug, thiserror::Error)]
2pub enum ErrorKind {
3 #[error("lib parser {0}")]
4 HgParserFailure(#[from] hg_parser::ErrorKind),
5 #[error("source error {0}")]
6 Source(#[from] crate::SourceRepositoryError),
7 #[error("target error {0}")]
8 Target(#[from] crate::TargetRepositoryError),
9 #[error("encoding error {0}")]
10 Encoding(#[from] std::str::Utf8Error),
11 #[error("io error {0}")]
12 IO(#[from] std::io::Error),
13 #[error("verify error {0}")]
14 VerifyFailure(String),
15 #[error("wrong file data {0}")]
16 WrongFileData(String),
17 #[error(
18 "wrong name of Mercurial user '{0}'.
19Must be in form 'Username <username@email.xyz>'.
20Use --authors option to specify mapping file in TOML format.
21Or use [authors] section in config.
22
23Example:
24
25 '{0}' = 'My <my@normal.xyz>'
26
27will replace Mercurial '{0}' with 'My <my@normal.xyz>' in Git.
28"
29 )]
30 WrongUser(String),
31 #[error(transparent)]
32 TemplateError(#[from] indicatif::style::TemplateError),
33 #[error(transparent)]
34 DialoguerError(#[from] dialoguer::Error),
35}