fix: fix credential3rd graphql
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
use async_graphql::Error as AsyncGraphQLError;
|
||||
use seaography::SeaographyError;
|
||||
|
||||
#[derive(Debug, snafu::Snafu)]
|
||||
pub enum CryptoError {
|
||||
#[snafu(transparent)]
|
||||
@@ -9,3 +12,9 @@ pub enum CryptoError {
|
||||
#[snafu(transparent)]
|
||||
SerdeJsonError { source: serde_json::Error },
|
||||
}
|
||||
|
||||
impl From<CryptoError> for SeaographyError {
|
||||
fn from(error: CryptoError) -> Self {
|
||||
SeaographyError::AsyncGraphQLError(AsyncGraphQLError::new(error.to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user