diff options
Diffstat (limited to 'p2p/src/error.rs')
-rw-r--r-- | p2p/src/error.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/p2p/src/error.rs b/p2p/src/error.rs index 97b7b7f..a490b57 100644 --- a/p2p/src/error.rs +++ b/p2p/src/error.rs @@ -11,8 +11,11 @@ pub enum Error { #[error("Unsupported protocol error: {0}")] UnsupportedProtocol(String), - #[error("Try from public key Error: {0}")] - TryFromPublicKey(&'static str), + #[error("PeerID try from PublicKey Error")] + PeerIDTryFromPublicKey, + + #[error("PeerID try from String Error")] + PeerIDTryFromString, #[error("Invalid message error: {0}")] InvalidMsg(String), @@ -24,6 +27,9 @@ pub enum Error { ParseIntError(#[from] std::num::ParseIntError), #[error(transparent)] + ParseIntError2(#[from] base64::DecodeError), + + #[error(transparent)] ParseFloatError(#[from] std::num::ParseFloatError), #[error(transparent)] |