Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat: Add attach_printable() for better error logging (#9667)

Prakhar Agrawalf9bd87dd9b9a
diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs
index c82bbec27a..3a80fe18b6 100644
--- a/crates/router/src/core/user.rs
+++ b/crates/router/src/core/user.rs
@@ -458,7 +458,8 @@ pub async fn change_password(
},
)
.await
- .change_context(UserErrors::InternalServerError)?;
+ .change_context(UserErrors::InternalServerError)
+ .attach_printable("Failed to update user password in the database")?;
let _ = auth::blacklist::insert_user_in_blacklist(&state, user.get_user_id())
.await