tawasuyu

tawasuyu/brahman

Rust 521TOML 202Markdown 57JSON 197505 Sutichaykuna

⎇ 53dbdf0f1deea10d6fc567ea2b43e1e75d6d60cd crates/modules/semantic_dht/minga-cli/src/error.rs Rust · 43 siq'ikuna · 1.0 KB Ñawpa willay Pi imata llamkarqan ch'uya

chore: monorepo inicial con arje + minga + yahweh absorbidos 53dbdf0f1 · Sergio ·

1use std::path::PathBuf;
2
3#[derive(Debug, thiserror::Error)]
4pub enum CliError {
5    #[error("io: {0}")]
6    Io(#[from] std::io::Error),
7
8    #[error("keypair file: {0}")]
9    KeypairFile(#[from] minga_store::KeypairFileError),
10
11    #[error("store: {0}")]
12    Store(#[from] minga_store::StoreError),
13
14    #[error("attestation: {0}")]
15    Attestation(#[from] minga_core::AttestationError),
16
17    #[error("parse: {0}")]
18    Parse(#[from] minga_core::parse::ParseError),
19
20    #[error("network: {0}")]
21    Network(#[from] minga_p2p::NodeError),
22
23    #[error("peer open: {0}")]
24    PeerOpen(#[from] minga_p2p::PeerOpenError),
25
26    #[error("peer sync: {0}")]
27    PeerSync(#[from] minga_p2p::PeerSyncError),
28
29    #[error("multiaddr inválido: {0}")]
30    Multiaddr(String),
31
32    #[error("el directorio del repo ya existe: {0}")]
33    AlreadyExists(PathBuf),
34
35    #[error("el multiaddr no incluye `/p2p/<peer_id>`")]
36    NoPeerIdInMultiaddr,
37
38    #[error("timeout esperando conexión")]
39    SyncTimeout,
40
41    #[error("notify (file watcher): {0}")]
42    Notify(#[from] notify::Error),
43}