Skip to content

Commit

Permalink
Add: Error::Elapsed and Error::Msg(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmqtt committed Jun 4, 2022
1 parent a5838c1 commit 21a70ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub enum Error {
LeaderNotExist,
#[error("protobuf error: `{0}`")]
ProtobufError(#[from] protobuf::ProtobufError),
#[error("timeout")]
Elapsed,
#[error("{0}")]
Msg(String),
}

impl Error {
Expand Down

0 comments on commit 21a70ac

Please sign in to comment.