Skip to content

Commit

Permalink
Dont display ResponseError::Validation error..
Browse files Browse the repository at this point in the history
..to end users.
  • Loading branch information
jbesraa committed Jul 1, 2024
1 parent eae05fd commit 098881e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payjoin/src/send/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl Display for ResponseError {
Self::WellKnown(e) => e.fmt(f),
// Don't display unknowns to end users, only debug logs
Self::Unrecognized { .. } => write!(f, "The receiver sent an unrecognized error."),
Self::Validation(e) => write!(f, "The receiver sent an invalid response: {}", e),
Self::Validation(_) => write!(f, "The receiver sent an invalid response."),
}
}
}
Expand Down

0 comments on commit 098881e

Please sign in to comment.