chore: skip none trace error (#1577)
This commit is contained in:
parent
0bf9665d98
commit
79e59eaffd
|
@ -103,6 +103,7 @@ pub struct Trace {
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
pub action_type: ActionType,
|
pub action_type: ActionType,
|
||||||
/// Error
|
/// Error
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub error: Option<String>,
|
pub error: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue