fix: improve streamin error to include error_type

This commit is contained in:
David Holtz 2024-10-25 14:35:25 +00:00 committed by Nicolas Patry
parent 21378b325b
commit a9c8c6a0d7
No known key found for this signature in database
GPG Key ID: D2920555C90F704C

View File

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