diff --git a/services/identity/src/database.rs b/services/identity/src/database.rs --- a/services/identity/src/database.rs +++ b/services/identity/src/database.rs @@ -79,7 +79,7 @@ "DynamoDB client failed to get registration data for user {}: {}", user_id, e ); - Err(Error::Rusoto(e)) + Err(Error::RusotoGet(e)) } } } @@ -220,7 +220,7 @@ "DynamoDB client failed to get token for user {} on device {}: {}", user_id, device_id, e ); - Err(Error::Rusoto(e)) + Err(Error::RusotoGet(e)) } } } @@ -231,7 +231,9 @@ )] pub enum Error { #[display(...)] - Rusoto(RusotoError), + RusotoGet(RusotoError), + #[display(...)] + RusotoPut(RusotoError), #[display(...)] Pake(ProtocolError), #[display(...)]