Skip to content

Commit

Permalink
more error handling2
Browse files Browse the repository at this point in the history
  • Loading branch information
nanu-c committed Aug 16, 2023
1 parent 1804942 commit b7e47cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presage-store-sled/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ use presage::libsignal_service::{
},
Content, ProfileKey, Uuid,
},
ThreadMetadata,
prelude::proto,
push_service::DEFAULT_DEVICE_ID,
Profile, ServiceAddress,
};
use presage::ThreadMetadata;

use prost::Message;
use protobuf::ContentProto;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
Expand Down
4 changes: 4 additions & 0 deletions presage/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ pub enum Error<S: std::error::Error> {
Timeout(#[from] tokio::time::error::Elapsed),
#[error("store error: {0}")]
Store(S),
#[error("unknown error: {0}")]
UnknownError(String),
#[error("verification error")]
VerificationCodeRequestError,
}

impl<S: StoreError> From<S> for Error<S> {
Expand Down

0 comments on commit b7e47cc

Please sign in to comment.