From 19673001aed5e9316c70500b8a84fbdd0d0adbbd Mon Sep 17 00:00:00 2001 From: Ali Hashemi Date: Mon, 17 Feb 2025 17:13:41 -0400 Subject: [PATCH] fix: implemented Error trait for JsonrpcErrorError --- src/generated_schema/2024_11_05/mcp_schema.rs | 2 +- src/generated_schema/2024_11_05/schema_utils.rs | 5 +++++ src/generated_schema/draft/mcp_schema.rs | 2 +- src/generated_schema/draft/schema_utils.rs | 5 +++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/generated_schema/2024_11_05/mcp_schema.rs b/src/generated_schema/2024_11_05/mcp_schema.rs index 706e9b0..0721bef 100644 --- a/src/generated_schema/2024_11_05/mcp_schema.rs +++ b/src/generated_schema/2024_11_05/mcp_schema.rs @@ -6,7 +6,7 @@ /// /// Generated from : /// Hash : 63e1dbb75456b359b9ed8b27d21f4ac68cbb753e -/// Generated at : 2025-02-14 08:18:40 +/// Generated at : 2025-02-17 17:12:03 /// ---------------------------------------------------------------------------- /// /// MCP Protocol Version diff --git a/src/generated_schema/2024_11_05/schema_utils.rs b/src/generated_schema/2024_11_05/schema_utils.rs index 4e3d4a6..edc7b2a 100644 --- a/src/generated_schema/2024_11_05/schema_utils.rs +++ b/src/generated_schema/2024_11_05/schema_utils.rs @@ -1385,6 +1385,11 @@ impl JsonrpcErrorError { self } } +impl std::error::Error for JsonrpcErrorError { + fn description(&self) -> &str { + &self.message + } +} impl Display for JsonrpcErrorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( diff --git a/src/generated_schema/draft/mcp_schema.rs b/src/generated_schema/draft/mcp_schema.rs index 08f3cc9..22a81c9 100644 --- a/src/generated_schema/draft/mcp_schema.rs +++ b/src/generated_schema/draft/mcp_schema.rs @@ -6,7 +6,7 @@ /// /// Generated from : /// Hash : 63e1dbb75456b359b9ed8b27d21f4ac68cbb753e -/// Generated at : 2025-02-14 08:18:40 +/// Generated at : 2025-02-17 17:12:04 /// ---------------------------------------------------------------------------- /// /// MCP Protocol Version diff --git a/src/generated_schema/draft/schema_utils.rs b/src/generated_schema/draft/schema_utils.rs index 866d2ac..f10f66f 100644 --- a/src/generated_schema/draft/schema_utils.rs +++ b/src/generated_schema/draft/schema_utils.rs @@ -1379,6 +1379,11 @@ impl JsonrpcErrorError { self } } +impl std::error::Error for JsonrpcErrorError { + fn description(&self) -> &str { + &self.message + } +} impl Display for JsonrpcErrorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(