From 2b1a360b1511d94ea9a24e5432e498e67939506a Mon Sep 17 00:00:00 2001 From: David Holtz Date: Fri, 25 Oct 2024 14:35:25 +0000 Subject: [PATCH] fix: improve streamin error to include error_type --- router/src/server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/router/src/server.rs b/router/src/server.rs index da63e9b1..6990f0d5 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -2530,6 +2530,7 @@ pub struct APIError { #[derive(serde::Serialize)] pub struct ErrorEvent { error: APIError, + error_type: String, } impl ErrorEvent { @@ -2539,6 +2540,7 @@ impl ErrorEvent { message: err.to_string(), http_status_code, }, + error_type: err.error_type().to_string(), } } }