From 5630c057707216ebaa605af4239901ebdc609f9d Mon Sep 17 00:00:00 2001 From: Ivor Dsouza Date: Fri, 17 Nov 2023 00:19:31 +0530 Subject: [PATCH] feat(feat/api_event_errors): revert to error_type_name() --- crates/api_models/src/errors/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api_models/src/errors/types.rs b/crates/api_models/src/errors/types.rs index 4b07beba848e..91401777f6d5 100644 --- a/crates/api_models/src/errors/types.rs +++ b/crates/api_models/src/errors/types.rs @@ -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()