/// custom error type intended to provide more convenient error message to user#[derive(Debug)]pubenumGcliError{/// error coming from subxtSubxt(subxt::Error),/// error coming from duniterDuniter(String),/// error coming from indexerIndexer(String),/// logic error (illegal operation or security)Logic(String),/// input errorInput(String),/// error coming from anyhow (to be removed)Anyhow(anyhow::Error),/// error coming from ioIoError(std::io::Error),}
but anyhow is often used event when a more domain specific error message could be given.
Anyhow variant should be used at its strict minimum.