Merge branch 'error-leak-fix' into 'next'

sanitise potentially sensitive errors

See merge request famedly/conduit!523
This commit is contained in:
Timo Kösters 2023-08-01 11:25:06 +00:00
commit d2bfcb018e
2 changed files with 23 additions and 1 deletions

View file

@ -927,7 +927,7 @@ pub async fn send_transaction_message_route(
Ok(send_transaction_message::v1::Response {
pdus: resolved_map
.into_iter()
.map(|(e, r)| (e, r.map_err(|e| e.to_string())))
.map(|(e, r)| (e, r.map_err(|e| e.sanitized_error())))
.collect(),
})
}