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 @@ -75,7 +75,7 @@ "DynamoDB client failed to get registration data for user {}: {}", user_id, e ); - Err(Error::Rusoto(e)) + Err(Error::RusotoGet(e)) } } } @@ -154,7 +154,7 @@ "DynamoDB client failed to get token for user {} on device {}: {}", user_id, device_id, e ); - Err(Error::Rusoto(e)) + Err(Error::RusotoGet(e)) } } } @@ -165,7 +165,9 @@ )] pub enum Error { #[display(...)] - Rusoto(RusotoError), + RusotoGet(RusotoError), + #[display(...)] + RusotoPut(RusotoError), #[display(...)] Pake(ProtocolError), #[display(...)]