Skip to content

Commit

Permalink
[SDDK] add bip39-rs error variant
Browse files Browse the repository at this point in the history
  • Loading branch information
steveatinfincia committed Sep 30, 2017
1 parent 79f2c4c commit d2f6731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sddk/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl From<::bip39::Error> for CryptoError {
::bip39::ErrorKind::InvalidWordLength => CryptoError::RecoveryPhraseInvalid(Box::new(e)),
::bip39::ErrorKind::InvalidWord => CryptoError::RecoveryPhraseInvalid(Box::new(e)),
::bip39::ErrorKind::LanguageUnavailable => CryptoError::RecoveryPhraseInvalid(Box::new(e)),
::bip39::ErrorKind::DataDecode(_) => CryptoError::RecoveryPhraseInvalid(Box::new(e)),
}
}
}
Expand Down

0 comments on commit d2f6731

Please sign in to comment.