fix: improve streamin error to include error_type

This commit is contained in:
David Holtz 2024-10-25 14:35:25 +00:00
parent 825f39d12b
commit 2b1a360b15
1 changed files with 2 additions and 0 deletions

View File

@ -2530,6 +2530,7 @@ pub struct APIError {
#[derive(serde::Serialize)] #[derive(serde::Serialize)]
pub struct ErrorEvent { pub struct ErrorEvent {
error: APIError, error: APIError,
error_type: String,
} }
impl ErrorEvent { impl ErrorEvent {
@ -2539,6 +2540,7 @@ impl ErrorEvent {
message: err.to_string(), message: err.to_string(),
http_status_code, http_status_code,
}, },
error_type: err.error_type().to_string(),
} }
} }
} }