Skip to content

Commit

Permalink
feat(feat/api_event_errors): revert to error_type_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
ivor11 committed Nov 16, 2023
1 parent 030811d commit 5630c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/api_models/src/errors/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl serde::ser::Serialize for ApiErrorResponse {
| Self::BadRequest(api_error)
| Self::ConnectorError(api_error, _) => {
let mut state = serializer.serialize_struct("ApiErrorResponse", 2)?;
state.serialize_field("type", &self.to_string())?;
state.serialize_field("type", &self.error_type_name())?;
state.serialize_field("value", api_error)?;
state.end()

Expand Down

0 comments on commit 5630c05

Please sign in to comment.