Skip to content

Commit

Permalink
fix: don't obfuscate rexie error in keystore v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonThormeyer committed Nov 27, 2024
1 parent 987ac59 commit 3896bab
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ pub enum CryptoKeystoreError {
#[error("The task has been canceled")]
WasmExecutorError,
#[cfg(target_family = "wasm")]
#[error("{0}")]
RexieError(String),
#[error(transparent)]
/// Rexie Error
RexieError(#[from] rexie::Error),
#[cfg(target_family = "wasm")]
#[error("An IndexedDB timeout has occured")]
RexieTimeoutError,
Expand Down Expand Up @@ -176,13 +177,6 @@ impl From<serde_wasm_bindgen::Error> for CryptoKeystoreError {
}
}

#[cfg(target_family = "wasm")]
impl From<rexie::Error> for CryptoKeystoreError {
fn from(rexie_err: rexie::Error) -> Self {
Self::RexieError(rexie_err.to_string())
}
}

#[cfg(feature = "proteus-keystore")]
impl proteus_traits::ProteusErrorCode for CryptoKeystoreError {
fn code(&self) -> proteus_traits::ProteusErrorKind {
Expand Down

0 comments on commit 3896bab

Please sign in to comment.